Courses
Courses
Code Compiler
Code Compiler
Discuss
Pricing
Teams
Log in
Register
Menu
Q&A Discussions
Search
Search
Ask a question
Ask a question
who can tell me what happens in this code?
a[0][0]=5
a=[[0]*2]*2
b[0][0]=5
b=[[0,0],[0,0]]
print(a,b)
1 Vote
4 Answers
11th Apr 2021, 3:40 PM
ice
Ask a question
Ask a question
Ask a question
Ask a question
Hot today
HTML
1 Votes
Functions in python
0 Votes
For Mobile app
0 Votes
Whatâs the One Thing That Helped You Learn Coding Faster?
1 Votes
I need advice
0 Votes
Answer please
0 Votes
I need advice
0 Votes
this query always result to be incorrect from Sorting Data lesson
1 Votes
Why this code fails even without data race
0 Votes
Paint costs
1 Votes