Update password_generator.py

This commit is contained in:
Darren 2024-04-07 08:26:40 +08:00 committed by GitHub
parent d322a32fcc
commit 9e9a13d1e4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -10,7 +10,7 @@ class PasswordGenerator:
lowercase_letters = string.ascii_lowercase # all lowercase letters
uppercase_letters = string.ascii_uppercase # all uppercase letters
digits = string.digits # all digits
special_symbols = "!@#$" # all special symbols
special_symbols = "!#" # all special symbols
# get 4 random characters from each category
password = [
@ -79,4 +79,4 @@ class PasswordGenerator:
random.shuffle(password_list)
# Convert list to string
return ''.join(password_list)
return ''.join(password_list)