53
Python Mutability (programming.dev)

See the Solution and Explanation.

you are viewing a single comment's thread
view the rest of the comments
[-] bterwijn@programming.dev 3 points 1 month ago

Yes, that is a surprise to many, in other languages 'x+=y' and 'x=x+y' are the same.

this post was submitted on 02 Sep 2025
53 points (94.9% liked)

Python

7508 readers
2 users here now

Welcome to the Python community on the programming.dev Lemmy instance!

📅 Events

PastNovember 2023

October 2023

July 2023

August 2023

September 2023

🐍 Python project:
💓 Python Community:
✨ Python Ecosystem:
🌌 Fediverse
Communities
Projects
Feeds

founded 2 years ago
MODERATORS