time.sleep(1)
--------------------------------------------------------------------------- NameError Traceback (most recent call last) <ipython-input-1-5e5a84322b49> in <module> ----> 1 time.sleep(1) NameError: name 'time' is not defined
import time
time.sleep(1)
x = "hello world"
print(x)
hello world
print("The value of the variable x: '{}''".format(x))
The value of the variable x: 'hello world''
for i in range(0, 10):
print(i)
0 1 2 3 4 5 6 7 8 9
while i >= 0:
print(i)
i -= 1
9 8 7 6 5 4 3 2 1 0
i
-1
y = print("hello world")
hello world
print(y)
None