KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Are these two expressions the same? a = [[0]*3]*3 b = [[0]*3 for i in range(3)] The resulting a and b values look the same. But would one way be better than the other? What is the difference here.
Tags (comma-separated)
Save Edits
Cancel