+ 1
Why i am getting this output in python3?
if 0 or 0: print(0) else: print(1) #here i m getting 1 as output.Tell me the logic behind this code..
3 Respuestas
+ 1
is it working like OR logic gate??
- 1
you will get 1 for every event except 0.
if 0 or 0: print(0) else: print(1) #here i m getting 1 as output.Tell me the logic behind this code..