time.sleep python api code example Example: python time sleep import time #stops the program for x seconds time.sleep(x)