+ 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..

11th Sep 2018, 2:31 PM
V4VNC😍😍
V4VNC😍😍 - avatar
3 ответов
+ 1
is it working like OR logic gate??
11th Sep 2018, 2:41 PM
V4VNC😍😍
V4VNC😍😍 - avatar
- 1
you will get 1 for every event except 0.
11th Sep 2018, 2:40 PM
Jason Hoffman
Jason Hoffman - avatar