I entered passed int values and tried boolean operations over it but I am not able to understand why it is giving this kind of output.
x = int(input())
y = int(input())
print(x and y)
print(x or y)
Output of the above code:
12
13
13
12
I entered passed int values and tried boolean operations over it but I am not able to understand why it is giving this kind of output.
x = int(input())
y = int(input())
print(x and y)
print(x or y)
Output of the above code:
12
13
13
12