Chapter 9 - 3
Chapter 9 - 3
Introduction to Python
Declaration
These slides are made for UIT, BU students only. I am not
holding any copy write of it as I had collected these study
materials from different books and websites etc. I have not
mentioned those to avoid complexity.
Output:
I am Not in if
i = 20
if (i < 15):
print("i is smaller than 15")
print("i'm in if Block")
else:
print("i is greater than 15")
print("i'm in else Block")
print("i'm not in if and not in else Block")
i = 20
if (i == 10):
print("i is 10")
elif (i == 15):
print("i is 15")
elif (i == 20):
print("i is 20")
else:
print("i is not present")
Output:
New York
print(phrase_no_space)
#Doordonotthereisnotry
print(clean_begin_text)
#This is a regular text.