From 67b0295101fd4c975987d89c61ef73c5d06ff0c4 Mon Sep 17 00:00:00 2001 From: Danny Date: Thu, 9 Apr 2026 17:50:00 +0200 Subject: [PATCH] removed error --- theXORitself.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/theXORitself.py b/theXORitself.py index 845e683..a2c1ae6 100644 --- a/theXORitself.py +++ b/theXORitself.py @@ -6,7 +6,7 @@ def main(argv): comp1 = '' comp2 = '' comp3 = '' - + try: opts, args = getopt.getopt(argv,"hc1:c2:c3:",["comp1=","comp2=","comp3="]) except getopt.GetoptError: @@ -23,7 +23,7 @@ def main(argv): elif opt in ("-c3","--comp3"): comp3 = str(arg) - if len(comp1) != len(comp2) or str(len(comp1)) != str(len(comp3)): + if len(comp1) != len(comp2) or len(comp1) != len(comp3): print("All components should be of the same length") sys.exit(2)