Update xnor.py

This commit is contained in:
Daniel
2022-11-09 10:57:07 +02:00
committed by GitHub
parent 45eec860ee
commit 973026ee1c

View File

@@ -1,9 +1,2 @@
def XNOR(a,b):
if(a == b):
return 1
else:
return 0
x = input()
y = input()
print(XNOR(x,y))
a, b = int(input()), int(input())
print(bool((a or not b) and (not a or b)))