Automate Boring Stuff With Python - Colaboratory
Automate Boring Stuff With Python - Colaboratory
Hello!
What is your name?
eme
It is good to meet you, eme
The length of your name is:
3
What is your age?
22
You will be 23 in a year.
len("42")
print("I am " + str( 41 )+ " years old") # example that concatenate string expressions
I am 41 years old
False
44==99
False
2!=2
False
33<=55
True
True!= False
True
"dog"=="cat"
False
False
False or False
False
not True
False
True
https://colab.research.google.com/drive/1EHGqpKMhNFbeJa6N7GQduadc0XtZiIpl#scrollTo=Qi70xV0SJxxn&printMode=true 1/3
1/2/24, 13:36 automate boring stuff with python - Colaboratory
(4<5)and(5<6)
True
(4<5)and(9<6)
False
(1==2) or (2==2)
True
True
spam = 0
while spam < 5:
print('Hello, world.')
spam = spam + 1
Hello, world.
Hello, world.
Hello, world.
Hello, world.
Hello, world.
https://colab.research.google.com/drive/1EHGqpKMhNFbeJa6N7GQduadc0XtZiIpl#scrollTo=Qi70xV0SJxxn&printMode=true 3/3