There was an error while loading. Please reload this page.
2 parents fbdbb38 + fecb695 commit de8e0b9Copy full SHA for de8e0b9
Python/passwordGenerator.py
@@ -0,0 +1,7 @@
1
+import random
2
+import string
3
+print("Welcome to the Password Generator!")
4
+total = string.ascii_letters + string.digits + string.punctuation
5
+length = int(input("How many characters would you like in your password? "))
6
+password = "".join(random.sample(total, length))
7
+print(f"Your secure password is: {password}")
0 commit comments