We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d31a308 commit 2910a9eCopy full SHA for 2910a9e
project_13_random_password_generator.py
@@ -13,6 +13,21 @@
13
characters = list(string.ascii_letters + string.digits + "!@#$%^&*()")
14
15
def generate_password():
16
- pass
+ password_length = int(input("How long would you like your password to be? "))
17
+
18
+ random.shuffle(characters)
19
20
+ password = []
21
22
+ for x in range(password_length):
23
+ password.append(random.choice(characters))
24
25
+ random.shuffle(password)
26
27
+ password = "".join(password)
28
29
+ print(password)
30
31
+generate_password()
32
33
# Continuing...
0 commit comments