Skip to content

Instantly share code, notes, and snippets.

@enricopolanski
Created September 7, 2017 11:49
Show Gist options
  • Save enricopolanski/bac20242b9f469daa172cb485259b96a to your computer and use it in GitHub Desktop.
Save enricopolanski/bac20242b9f469daa172cb485259b96a to your computer and use it in GitHub Desktop.
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