from time import sleep
from datetime import datetime  # These lines of code import the needed libraries

now = datetime.now()  # This creates the variable 'now'

while True:  # This creates a never ending loop
    print '%s:%s:%s' % (now.hour,now.minute,now.second)  # This prints the 'now' variable
    sleep(1)  # This tells the computer to continue doing nothing for one second
    now = datetime.now()  # This 'resets' the variable 'now'