Skip to content

Commit 33ea1ff

Browse files
authored
Add files via upload
1 parent 5e984c5 commit 33ea1ff

File tree

1 file changed

+26
-0
lines changed
  • Easy_level_password_Genertor

1 file changed

+26
-0
lines changed

Easy_level_password_Genertor/main.py

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
import random
2+
3+
print("Welcome to password generator.")
4+
l = int(input("How many letters do you want in your passwords: "))
5+
n = int(input("How many numbers do you want in your passwords: "))
6+
s = int(input("How many symbols do you want in your passwords: "))
7+
password = " "
8+
letters = ['a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'
9+
'A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z'
10+
]
11+
numbers = ['1','2','3','4','5','6','7','8','9','0']
12+
symbols = ['!','@','#','$','%','&','*','(',')','-','+']
13+
14+
for i in range(1,l+1):
15+
char = random.choice(letters)
16+
password = password + char
17+
18+
for i in range(1,n+1):
19+
char = random.choice(numbers)
20+
password = password + char
21+
22+
for i in range(1,s+1):
23+
char = random.choice(symbols)
24+
password = password + char
25+
26+
print(password)

0 commit comments

Comments
 (0)