Get Unlimited Contributor Access to the all ExamTopics Exams!
Take advantage of PDF Files for 1000+ Exams along with community discussions and pass IT Certification Exams Easily.
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, 2 months agorbishun
Highly Voted 1 year, 11 months agoseaverick
Most Recent 2 months, 3 weeks agorodanielb
8 months, 2 weeks agoAmcal
1 year, 1 month agogreyhats13
1 year, 3 months agonaveenbv80
1 year, 4 months agoJO5H
1 year, 6 months agoJnanada
1 year, 8 months agobesha
1 year, 9 months agoBaldridge
1 year, 10 months ago666_m
1 year, 11 months agomacxsz
1 year, 11 months agoyuv322
1 year, 11 months ago