When taking Python courses, sometimes I see this as the correct way to complete the lesson:
money_in_bank_account = 100
money_in_bank_account += 200 + 50
(this bank account thing is just an example) and then sometimes I see this:
money_in_bank_account = 100
money_in_bank_account = money_in_bank_account + 200 + 50
So is there any different between using the variable name in the new value being added to the variable and just using “+=”?