Use of Boolean logic | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Use of Boolean logic

Age=int(input()) From (0 to 11) print Child From (12 to 17) print Teen From (18 to 64) print Adult

1st Dec 2022, 12:03 PM
Nag3b100
4 Answers
+ 1
What is your question?
1st Dec 2022, 12:12 PM
Lisa
Lisa - avatar
0
#Nag3b100 boolean is to write an expression that evaluates to True or False. age=int(input()) print(0<=age<=11) print(12<=age<=17) if 0<=age<=11: print("Child") elif 12<=age<=17: print('Teen') else: print('Adult')
1st Dec 2022, 12:14 PM
Bob_Li
Bob_Li - avatar
0
The usage of boolean expression is to evaluate true or false.
1st Dec 2022, 3:27 PM
Anonymous
Anonymous - avatar
0
To answer yes or no O or 1 in English we can say as true or false
2nd Dec 2022, 4:44 PM
Ashwanth
Ashwanth - avatar