From 973026ee1c8dc7e7c0c9793ecb8136d0f5b07e21 Mon Sep 17 00:00:00 2001 From: Daniel <59575049+lemoentjiez@users.noreply.github.com> Date: Wed, 9 Nov 2022 10:57:07 +0200 Subject: [PATCH] Update xnor.py --- LabMD_1/xnor.py | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/LabMD_1/xnor.py b/LabMD_1/xnor.py index 66e105c..c6f9d1c 100644 --- a/LabMD_1/xnor.py +++ b/LabMD_1/xnor.py @@ -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)))