Multiple condition | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Multiple condition

Which operators have got greater than order? And, or, not. The second question: totally how do we use (not) in multiple conditions together? With a sample please.

24th Oct 2020, 7:48 PM
aryan shahrabi
2 Answers
+ 6
The priority is: not and or if 0 or not 0 and 1: print('Hi!') the if statement is True (1)
24th Oct 2020, 8:56 PM
Vitaly Sokol
Vitaly Sokol - avatar
+ 1
Thanks
24th Oct 2020, 9:31 PM
aryan shahrabi