import time for x in range(3): print "The time is now", time.asctime() print "Now sleeping for 2 seconds..." time.sleep(2)