why is {if not false } condition not executing? | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
0

why is {if not false } condition not executing?

if not 1 + 1 == y or x == 4 and 7 == 8 if not (true or true) and false if not (true and false) if not false

27th Dec 2016, 10:01 AM
coder
4 Réponses
+ 5
put 1 + 1 inside parenthesis?
27th Dec 2016, 10:06 AM
Valen.H. ~
Valen.H. ~ - avatar
+ 4
Yes, Capitalize Booleans...
27th Dec 2016, 10:09 AM
Valen.H. ~
Valen.H. ~ - avatar
+ 1
you should code "if not False" unless you have already defined "false"
27th Dec 2016, 10:08 AM
YuHai
YuHai - avatar
+ 1
if you do so,the answer is the same,but it can help you to check the code more conveniently
27th Dec 2016, 10:16 AM
YuHai
YuHai - avatar