11. making a purchase


#1

Hi guys,

What does the +- sign do in the assignment?


#2

if you're talking about how it is used in adding something to the 'total' variable then the "+=" characters will take the variable, add whatever it is you are adding to it, and make that the new definition of the variable. so if "x = 3" and you write "x += 2" then "print x" will return 5.