fix grader
This commit is contained in:
parent
0f4b5ef855
commit
e030613517
1 changed files with 34 additions and 35 deletions
|
@ -21,7 +21,6 @@ def modinv(a, m):
|
||||||
def randleetify(s, random):
|
def randleetify(s, random):
|
||||||
i = list(s)
|
i = list(s)
|
||||||
for c in range(len(i)):
|
for c in range(len(i)):
|
||||||
if random.random() > 0.5:
|
|
||||||
if i[c] == 'i':
|
if i[c] == 'i':
|
||||||
if random.random() > 0.66:
|
if random.random() > 0.66:
|
||||||
i[c] = '1'
|
i[c] = '1'
|
||||||
|
|
Loading…
Reference in a new issue