-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathshiny_pokemon_tracker.py
More file actions
48 lines (31 loc) · 956 Bytes
/
shiny_pokemon_tracker.py
File metadata and controls
48 lines (31 loc) · 956 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
shiny_pokemon = []
def add_pokemon():
add_mon = input("\n Pokemon to add: ").title()
shiny_pokemon.append(add_mon)
print("\n " + add_mon + " has been added.")
def remove_pokemon():
remove_mon = input("\n Pokemon to remove: ").title()
shiny_pokemon.remove(remove_mon)
print("\n " + remove_mon + " has been removed.")
def start():
print("\n Welcome to your shiny list.")
print(" To add a pokemon select (a).")
print(" To remove a pokemon select (r).")
print(" To view your list select (v).")
print(" To exit select (q).")
answer = input("\n > ").lower()
if answer == "a":
add_pokemon()
start()
elif answer == "r":
remove_pokemon()
start()
elif answer == "v":
for x in shiny_pokemon:
print(x)
start()
elif answer == "q":
exit()
else:
start()
start()