0
If not true: here from true what code actualy means??
here from true what code atualy means??
1 Respuesta
+ 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 ^^).