What Does -= Mean?


#1

what does “-=” in this string mean: “money_in_wallet -= sandwich_price” ?


FAQ: Learn Python - Python Syntax - Updating Variables
#2

its a shorthand, without the shorthand it would be:

money_in_wallet = money_in_wallet - sandwich_price

#3

O, thanks, stetim94 !!!


#4