16. What will be the result given by the following ?
a) type(6+3) : int b) type(6-3) : int c: type(6*3) : int d) type(6/3) : float e) type(6//3) : int f) type(6%3) : int
16. What will be the result given by the following ? Read More »
a) type(6+3) : int b) type(6-3) : int c: type(6*3) : int d) type(6/3) : float e) type(6//3) : int f) type(6%3) : int
16. What will be the result given by the following ? Read More »
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.
17. What are augmented assignment operators ? How are they useful ? Read More »