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