time.sleep pyhton code example Example: python sleep import time print("Print now") time.sleep(4.2) print("Printing after 4.2 seconds")