From 1f2a7273d3835d2eda454ba65a212cbbf9efd629 Mon Sep 17 00:00:00 2001 From: "rayyan.belhi" <rayyan.belhi@etu.hesge.ch> Date: Wed, 30 Mar 2022 23:53:36 +0200 Subject: [PATCH] Update main.py --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 1a0100b..299bb66 100644 --- a/main.py +++ b/main.py @@ -29,7 +29,7 @@ def mul_mod(a,b): # (a*b) mod 17 // p.3 def xor(a,b):#a XOR b = str(binaire) # CODE SPAGHETTI | À OPTIMISER SI POSSIBLE -# accepte des nombres (décimaux & binaires) qui n'ont pas la même taille (100 et 7 par exemple) +# accepte des nombres (décimaux & binaires-str) qui n'ont pas la même taille (100 et 7 par exemple) res = '' if(type(a) != str): #transforme les int en str (5 = 101 ; pas 0b101) -- GitLab