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 2 years agorbishun
Highly Voted 2 years, 10 months ago_vt
Most Recent 3 weeks agoseaverick
1 year, 1 month agorodanielb
1 year, 7 months agoAmcal
1 year, 12 months agogreyhats13
2 years, 2 months agonaveenbv80
2 years, 3 months agoJO5H
2 years, 5 months agoJnanada
2 years, 6 months agobesha
2 years, 8 months agoBaldridge
2 years, 9 months ago666_m
2 years, 10 months agomacxsz
2 years, 10 months agoyuv322
2 years, 10 months ago