Skip to content

Commit 040ffd5

Browse files
authored
Random Password Generator
1 parent 258bf2f commit 040ffd5

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

RandomPassword/password.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import string
2+
import random
3+
4+
passwrd = string.ascii_letters+string.digits+string.punctuation
5+
6+
numPass = int(input("How many passwords do you need to be generated? "))
7+
length = int(input("Enter the length of the password(s): "))
8+
9+
print("List(s) of Generated passwords: ")
10+
11+
for pwd in range(numPass):
12+
pw=''
13+
for c in range(length):
14+
pw += random.choice(passwrd)
15+
print(pw)

RandomPassword/password1.png

38.5 KB
Loading

0 commit comments

Comments
 (0)