What have I done wrong with the following code?


#1


I just wanted to mess around a bit in the labs to take a break and then this happened.
Here is the exact error text
Internal error: ReferenceError: _select is not defined'

It will print out 'hi' as the first line tells it to and then when it reaches the time.sleep(5) on the next line, the error message shows.

It's just supposed to print 'hi', wait 5 seconds and then print 'sup'.


import time

print ("Hi")
time.sleep(5)
print ("Sup")


#2

Try this

import time
while True:
print "Hello"
time.sleep(5)
print "Sup"


#3

This does not work for me. I am in 2.7.2