import time print("Print now") time.sleep(4.2) print("Printing after 4.2 seconds")
Here is what the above code is Doing:
1. It prints “Print now”
2. It waits 4.2 seconds
3. It prints “Printing after 4.2 seconds”
import time print("Print now") time.sleep(4.2) print("Printing after 4.2 seconds")
Here is what the above code is Doing:
1. It prints “Print now”
2. It waits 4.2 seconds
3. It prints “Printing after 4.2 seconds”