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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy