0

If not true: here from true what code actualy means??

here from true what code atualy means??

6th Jun 2017, 7:18 PM
Asif Mohd
Asif Mohd - avatar
1 ответ
+ 3
if condition: ... ... will execute if "condition" is evaluated as True. "True" is always True (logic) and the contrary of "True" is "False" (logic again) the operator not works like this : not a return "True" if a is "False" and "False" if a is "True" so "not True" returns "False" : True is True so not True is False Then : if not True: ... ... will never run because not True is False (and False is not True ^^).
6th Jun 2017, 7:42 PM
Glozi30
Glozi30 - avatar