From ba1a173a9ef327981651c94aa320572f8590418c Mon Sep 17 00:00:00 2001 From: MICHELAT Corentin Date: Fri, 27 Mar 2026 14:39:32 +0100 Subject: [PATCH] le programme marche !! --- main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index 21920e6..b34b09c 100644 --- a/main.py +++ b/main.py @@ -8,7 +8,8 @@ def reseau(ip,masque): lstMasque = masque.split(".") lstReseau = [' ']*4 for i in range(4): - lstReseau[i] =str(int(lstIP[i]))&str(lstMasque[i]) + lstReseau[i] =int(lstIP[i])&int(lstMasque[i]) + lstReseau[i] = str(lstReseau[i]) return".".join(lstReseau) def recup():