python sleep 1 sec code example Example: python wait for x seconds import time x = 1 # Put in whatever seconds you want it to wait time.sleep(x)