Initial upload
This commit is contained in:
commit
bf8a8f965d
7 changed files with 77 additions and 0 deletions
14
password_generator.py
Normal file
14
password_generator.py
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
import random
|
||||
|
||||
chars = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!@#$%^&*?0123456789'
|
||||
|
||||
print('Welcome To Your Password Generator')
|
||||
number = int(input("How many passwords would you like to generate? "))
|
||||
length = int(input("Enter a password length? "))
|
||||
|
||||
print("\nHere are your passwords:")
|
||||
for pwd in range(number):
|
||||
passwords = ''
|
||||
for c in range(length):
|
||||
passwords += random.choice(chars)
|
||||
print(passwords)
|
||||
Loading…
Add table
Add a link
Reference in a new issue