import time northcount = 0 def north(): print("To go north, press n then enter.") while northcount <= 10001: north() time.sleep(0.0001) northcount += 1 if northcount >= 10000: break