Update xnor.py
This commit is contained in:
@@ -1,9 +1,2 @@
|
|||||||
def XNOR(a,b):
|
a, b = int(input()), int(input())
|
||||||
if(a == b):
|
print(bool((a or not b) and (not a or b)))
|
||||||
return 1
|
|
||||||
else:
|
|
||||||
return 0
|
|
||||||
|
|
||||||
x = input()
|
|
||||||
y = input()
|
|
||||||
print(XNOR(x,y))
|
|
||||||
|
|||||||
Reference in New Issue
Block a user