Corns do not need any lights, and actually their tanks should not be placed in direct line of a window, because the sunlight that seeps in can actually heat up their viv to dangerous temperatures!
You shouldn't keep your snake in a closet or anything, but they don't really need a whole lot of light, and actually seem to prefer darkness. They feel more comfortable in low light situations.