import sys, time while True: print 'Hello' sys.stdout.flush () time.sleep (1)