Skip to content
  • Tutorials
    • c programming
      • libraries
    • c++
    • Linux
    • Python
    • batch programming
    • Technology
  • IDE
  • Tools
py sleep function 1

py sleep function

May 5, 2022 by Anurag batra
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”

Categories Python Examples
Post navigation
shebang python
how to import login required in django
© MyEduKit - 2022 . All Rights Reserved.