Skip to content

Commit

Permalink
Fix error in Password Complexity using python3
Browse files Browse the repository at this point in the history
Rrror due to :
	python2 => 1 / 2 = 0
	python3 => 1 / 2 = 0.5
	python3 => 1 // 2 = 0
  • Loading branch information
mpgn authored Jan 24, 2020
1 parent c2cc465 commit 94ae6b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion polenum.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 94ae6b6

Please sign in to comment.