Skip to content
This repository was archived by the owner on May 25, 2022. It is now read-only.

Commit 7cb34d6

Browse files
authored
Update generator.py
1 parent d69bf46 commit 7cb34d6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

projects/recursive password generator/generator.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,11 @@ def get_random_char():
1313
return randomChar
1414

1515
while 1:
16+
maxlen = input(' [?] Enter a length for your password (e for exit): ')
1617
try:
17-
maxlength = int(input(' [?] Enter a length for your password (e for exit): '))
18+
maxlength = int(maxlen)
1819
print("'",stretch('',maxlength),"'\n")
1920
except:
20-
if maxlength == 'e':
21+
if maxlen == 'e':
2122
break
2223
print('Please Enter an integer')

0 commit comments

Comments
 (0)