Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Random Password Generator
  • Loading branch information
larymak authored Mar 8, 2021
commit 040ffd58d9def64abc217be41b2e815966fc98d3
15 changes: 15 additions & 0 deletions RandomPassword/password.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import string
import random

passwrd = string.ascii_letters+string.digits+string.punctuation

numPass = int(input("How many passwords do you need to be generated? "))
length = int(input("Enter the length of the password(s): "))

print("List(s) of Generated passwords: ")

for pwd in range(numPass):
pw=''
for c in range(length):
pw += random.choice(passwrd)
print(pw)
Binary file added RandomPassword/password1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.