Last active
May 17, 2021 23:50
-
-
Save mbjames/815b84518ab928ca23bb105242ead474 to your computer and use it in GitHub Desktop.
Shiny Pokemon Collection Tracker Program
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment