- #1
shivajikobardan
- 674
- 54
Code:
my_age = 10
if my_age >= 100:
print("One hundred years old! Very impressive.")
elif my_age <= 3:
print("Awwww. Just a baby.")
else:
print("Ah - a very fine age indeed")
https://www.fullstackpython.com/blog/python-basic-data-types-booleans.html
Article says-:
Booleans are used in your code to make it behave differently based on current conditions within your program. You can use boolean values and comparisons in conjunction with the if, elif, and else keyoards as one means to achieve this.