Рет қаралды 257,142
If you thought x+=y means x=x+y you'd be wrong!
Python's plus equals augmented assignment syntax is more complex than many people realize. Let's take a look.
(Sorry for the dark purple again! I've changed it in my ide to pink for the future!)
― mCoding with James Murphy (mcoding.io)
Source code: github.com/mCodingLLC/VideosS...
Docs for iadd: docs.python.org/3/reference/d...
SUPPORT ME ⭐
---------------------------------------------------
Patreon: / mcoding
Paypal: www.paypal.com/donate/?hosted...
Other donations: mcoding.io/donate
BE ACTIVE IN MY COMMUNITY 😄
---------------------------------------------------
Discord: / discord
Github: github.com/mCodingLLC/
Reddit: / mcoding
Facebook: / james.mcoding