Error:TypeError: cannot concatenate 'str' and 'int' objects on line
when i have the following
1 2 3 4 5 6 7 8 9 10 11 12 |
balance = 1000 type_of_trans = input ( "Would you like to make a withdrawal or deposit?: " ) how_much = int ( input ( "How much? " )) if type_of_trans = = "withdrawal" : print balance - "how_much" if type_of_trans = = "deposit" : print balance + "how_much" else : print "Invalid transaction" |