I am working on an application to save and analyze my cryptocurrency data. I use 2 different apps, hotbit and binance. Since I have bought, for example, BTC on both hotbit and binance, I want to add HB to the end of BTC to specify that it needs to go into the hotbit table I've created. It should look like 'BTCHB'.
def which_application(self):
print("Which application was this transaction made on? Type either 'hotbit' or 'binance'")
which_application_prompt = input("").strip().lower()
if which_application_prompt == 'hotbit':
self = self + 'HB'
return(self)
elif which_application_prompt == 'binance':
pass
else:
print("Invalid input.")
which_application(self)
I've created this function and everything works smoothly inside the function. However, when I call the function and add a value in place of self, it doesn't add HB to it. Any ideas?