“The Key Difference: '+' on Lists vs '+' on Elements in Python”
When I first started learning Python, I assumed that + always meant “add.” But then I tried adding two lists and got something unexpected — not element-wise addition, but a longer list!
In this post, I’ll break down:
What + does when used on lists
...
namitha-data.hashnode.dev3 min read