from time import sleep while 1: print('hi') sleep(2)