Skip to content

Commit e8e4d72

Browse files
author
JANHVI TIWARI
committed
Added Password Generator Game
1 parent 86c5b73 commit e8e4d72

File tree

5 files changed

+62
-0
lines changed

5 files changed

+62
-0
lines changed
Binary file not shown.
61.9 KB
Loading

Diff for: PyGamesScripts/Password Generator Game/README.md

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# Password Generator Game
2+
3+
## SHORT DESCRIPTION OF PACKAGE/SCRIPT
4+
# WORKFLOW
5+
It is a quite simple game just there is three question asked to user that how many letter ,symbols and numbers you want to use to generate your password and after that you obtain your password and also found that whether your password is easy or hard level :).
6+
7+
This project is made to use the concept of else if, for loop and list.
8+
9+
10+
# SETUP/COMPILATION
11+
Copy the project to your local enviroment and that's all this code can be run on any python IDE.
12+
13+
14+
## DETAILED EXPLANATION OF SCRIPT, IF NEEDED
15+
16+
# _How to Play?_
17+
- This is a password generator game having three types of question asked from user to generate password.
18+
- How many letters would you like in your password?
19+
- How many symbols would you like?
20+
- How many numbers you like?
21+
- At last it will show the password standard whether it is low level or high level.
22+
23+
(GAME ENDS)
24+
25+
26+
## OUTPUT
27+
28+
## SCRENSHOT OF GAME
29+
![Game Image](screenshot.png)
30+
31+
## AUTHOR(s)
32+
33+
#### _Janhvi Tiwari_
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
#Password Generator Project
2+
3+
import random
4+
5+
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', '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']
6+
numbers = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9']
7+
symbols = ['!', '#', '$', '%', '&', '(', ')', '*', '+']
8+
9+
print("Welcome to the PyPassword Generator!")
10+
nr_letters= int(input("How many letters would you like in your password?"))
11+
nr_symbols = int(input(f"How many symbols would you like?"))
12+
nr_numbers = int(input(f"How many numbers would you like?"))
13+
14+
for pwd in range(0,nr_letters):
15+
pwd = print(f"{random.choice(letters)}",end="")
16+
17+
for pwd in range(0,nr_symbols):
18+
pwd = print(f"{random.choice(symbols)}",end="")
19+
20+
for pwd in range(0,nr_numbers):
21+
pwd = print(f"{random.choice(numbers)}",end="")
22+
23+
print("\n")
24+
25+
if nr_letters>5 and nr_numbers>3 and nr_symbols>3:
26+
print("Awesome!, you got a high level password")
27+
else:
28+
print("Good!, you got your password but try to make it high level password")
+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
import random

0 commit comments

Comments
 (0)