Created
September 7, 2017 11:49
-
-
Save enricopolanski/bac20242b9f469daa172cb485259b96a to your computer and use it in GitHub Desktop.
This file contains 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
def addCoin(): | |
coinlist = [] | |
while True: | |
coinlist.append(input("\nPlease select a coin you want to track:\n").upper()) | |
print("\nThe list of coins you're currently tracking is: \n" + "\n".join(coinlist) + "\n") | |
yesorno = input("Do you want to add another one? (Y/N): ").upper() | |
if yesorno == "Y": | |
continue | |
else: | |
break | |
return coinlist | |
NameError: Name 'whatever I try to append' is not defined |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment