Augmented assignment is the combination, in a single statement, of a binary operation and an assignment statement. e.g. a += 1 means a is assigned a+1. They are useful because they reduce the length of the code and make it look cleaner.
Augmented assignment is the combination, in a single statement, of a binary operation and an assignment statement. e.g. a += 1 means a is assigned a+1. They are useful because they reduce the length of the code and make it look cleaner.