+ 1

Boolean Or-explanations

age=15 Money=500 if age>18 or Money>100 print("welcome") Why in the third line is used "or"? I understand the lesson but why it is used here?

4th May 2018, 12:53 AM
Parsix3
Parsix3 - avatar
3 Answers
- 1
Plain english- If you have 100$ or your age is above 18 you are welcome.
4th May 2018, 1:54 AM
Akib
Akib - avatar
- 1
--_--
17th Dec 2020, 9:53 AM
arran
arran - avatar