I’m a beginner with python and I don’t understand the differences in #1 and #2.
Why does #2 changes all the elemnts of the list?
enter image description here
I xpected to have a changing just in the element i of the list but it change all the elements of the list
New contributor
vio__oiv is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
1