When you learned Python, you probably learned that the += operator is short for = and then +. But that's not entirely true, especially when dealing with mutable data like lists. In this video, I show the differences between them, including where a recent student of mine found out (the hard way) just how they differ.
The Jupyter notebooks for these videos are all on GitHub, at https://github.com/reuven/youTube-not.... And don't forget my free, weekly newsletter about Python at https://BetterDevelopersWeekly.com/!
На этой странице сайта вы можете посмотреть видео онлайн Is Python's += operator the same as = and +? длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь Python and Pandas with Reuven Lerner 20 Февраль 2022, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 4,395 раз и оно понравилось 87 зрителям. Приятного просмотра!