import random
print('Welcome to your Password Generator')
chars = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!?@€&$*()%.,;0123456789'
number = input('How many passwords you need? ')
number = int(number)
length = input('And how many characters? ')
length = int(length)
print('\nHere are your passwords: ')
for pwd in range(number):
passwords = ''
for c in range(length):
passwords += random.choice(chars)
print(passwords)
print("Thanks for using Password Gen.")
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter