New course!
Every coder should learn
Generative AI!
Try a free lesson
Courses
Courses
Code Compiler
Code Compiler
Discuss
Get Pro
Teams
Log in
Register
Menu
Q&A Discussions
Search
Search
Ask a question
Ask a question
a=[[0]*2]*2 a[0][0]=5 out: [[5,0],[5,0]]
list
multiply
python
6 Votes
5 Answers
5th Sep 2021, 12:39 PM
Arsalan [Inactive]
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
Is the AI course worth the $49?
0 Votes
Can anyone please help with this below code for python files
1 Votes
How private are "private" code snippets in Sololearn really?
1 Votes
Should I always mention name attribute inside <input type="" id="" name="" > ??
0 Votes
Where to use
0 Votes
Coding path
0 Votes
Scroll to bottom of page in Selenium with browser minimized
0 Votes
Blank screen when trying to but AI course on Apple 15 I phone,
0 Votes
How to win bits
1 Votes
Question on code instructionn course. Update: anwsered
1 Votes