Let's turn on some lights. Add in the code to enable them:
.
glTranslatef $(0,0,-4)$
glEnable (GL_DEPTH_TEST)
glEnable (GL_LIGHTING)
while not done:
. .
Now, when you run the application, the lights will be on, but they might not look like they are because you will see a very dull version of the rotating cube. This is a kind of ambient lighting. Just because the lights are enabled doesn't spontaneously create any lights. We have to do that manually.