Skip to content

Commit fe0c9b7

Browse files
committed
pwgen done
1 parent 08cdd79 commit fe0c9b7

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

‎Password Generator/main.py‎

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import random
2+
3+
print("Password Generator\n")
4+
5+
characters = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!@$%&*().,?0123456789'
6+
number = input('How many passwords we should generate for you?: ')
7+
number = int(number)
8+
9+
length = input('What should be the length of your passwords?: ')
10+
length = int(length)
11+
12+
print('\nGenerated Passwords: ')
13+
14+
for pwd in range(number):
15+
passwords = ''
16+
for c in range(length):
17+
passwords += random.choice(characters)
18+
print(passwords)

0 commit comments

Comments
 (0)