def thing():
x = 1
while x == 1:
print 'hello'
- Write the above code in the Python shell.
- Press enter several times to confirm the code.
- Write thing() and press enter.
- The program will print 'hello' forever, or until your computer dies.