Skip to content

Commit 8221dc1

Browse files
cclaussshermanhui
authored andcommitted
Simplify password_generator() (TheAlgorithms#4333)
1 parent f9e9ea9 commit 8221dc1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: other/password_generator.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def password_generator(length=8):
1616
>>> len(password_generator(-1))
1717
0
1818
"""
19-
chars = tuple(ascii_letters) + tuple(digits) + tuple(punctuation)
19+
chars = ascii_letters + digits + punctuation
2020
return "".join(choice(chars) for x in range(length))
2121

2222

0 commit comments

Comments
 (0)