I'm facing a situation where I can't crack the logic behind.
I have a piece of code that does
user_id = user_email = []
for id, email in users:
# users is a tuple of tuples that looks like ((a,b),(c,d)...)
user_id.append(id)
user_email.append(email)
When I check the result, I found that user_id == user_email
When I assign them separately, I can correctly get the id's and email's, instead of two identical lists that contain both id's and email's
I'm just wondering what's the logic behind the double assign and what causes this phenomenon to happen.