I\'m new to Python. How do I add variables with integer values together?
balance = 1000 deposit = 50 balance + deposit print \"Balance: \" + str(balance)
You need to assign the sum to a variable before printing.
balance = 1000 deposit = 50 total = balance + deposit print "Balance: " + str(total)