+ 1

This was just one of the challenge questions that sololearn gave me. Can anyone explain why the output is yes and not why?

https://code.sololearn.com/cmJfIudUNy07/?ref=app

5th Jul 2022, 1:06 AM
Sam Lachance
Sam Lachance - avatar
3 ответов
+ 7
sam lachance a or b and c means a or (b and c) True or (False and False) True or False True so output is Yes
5th Jul 2022, 1:58 AM
A͢J
A͢J - avatar
+ 3
Read about operator precedence. Also experiment changing the operators order and boolean values.
5th Jul 2022, 1:20 AM
Emerson Prado
Emerson Prado - avatar
+ 3
sam lachance since a is True nothing to the right of the or is evaluated.
5th Jul 2022, 2:40 AM
Paul K Sadler
Paul K Sadler - avatar