1from time import sleep
2# or import time
3
4a = 10
5sleep(4) # sleep function from time library
6print(a)
7
1import datetime #import module
2from datetime import timedelta #import method from module
3
4#You can also use alias names for both
5import datetime as dt
6from datetime import timedelta as td
1from time import sleep as stop # changes the name of the function to anything you want
2
3print("hi")
4stop(3) # works the same as the function without the as
5print("bye")