For you who thought it was AD, here is the explanation:
When you have an array in a variable and set it to another variable, they share the same id, that means they point to the same array.
a = [1]
b = a
print(id(a), id(b)) # same id
Since a==b, when you set a[0] = 0, you are "also" doing b[0] = 0
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
ivanbicalho
Highly Voted 1 year, 9 months agorbishun
Highly Voted 2 years, 6 months agoseaverick
Most Recent 10 months agorodanielb
1 year, 3 months agoAmcal
1 year, 8 months agogreyhats13
1 year, 11 months agonaveenbv80
1 year, 12 months agoJO5H
2 years, 2 months agoJnanada
2 years, 3 months agobesha
2 years, 4 months agoBaldridge
2 years, 6 months ago666_m
2 years, 6 months agomacxsz
2 years, 7 months agoyuv322
2 years, 7 months ago