i+=1 is not i=i+1. Augmented Assignment Statements in Python

preview_player
Показать описание
The Augmented Assignment also known as compound assignment Statement seems to be just short form for a re-assigment statement in Python. But is that true? Learn the difference between i = i + 1 and i += 1 in this video!

C H A P T E R S
0:12 Binary operation
1:03 Augmented assignment
1:55 Don't make me think!
2:30 The function of augmented assignments
3:30 Mutable v.s. Immutable types
4:38 Dunder iadd (__iadd__)

M Y O N L I N E T R A I N I N G

L I N K S I N T H E V I D E O

#augmentedassignment #programming #python
Рекомендации по теме
Комментарии
Автор

Very very instructive and well explained.

JoseAntonio-jflz
Автор

Thank you Python for Everyone, very cool!

imaginary
visit shbcf.ru