From 94ae6b6034fdcc6ee92987692f5135a079a46f8c Mon Sep 17 00:00:00 2001 From: mpgn Date: Fri, 24 Jan 2020 14:40:57 +0100 Subject: [PATCH] Fix error in Password Complexity using python3 Rrror due to : python2 => 1 / 2 = 0 python3 => 1 / 2 = 0.5 python3 => 1 // 2 = 0 --- polenum.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/polenum.py b/polenum.py index dd8f17b..a6a4737 100755 --- a/polenum.py +++ b/polenum.py @@ -25,7 +25,7 @@ def d2b(a): tbin = [] while a: tbin.append(a % 2) - a /= 2 + a //= 2 t2bin = tbin[::-1] if len(t2bin) != 8: