Courses
Log in
Start Learning AI
Courses
Log in
Start Learning AI
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
I have finished first in Saturn League 3 times in a row, why have I not been given the badge for âIntergalactic Championâ
3 Votes
I am new
1 Votes
Changing String Variables into int in C++
0 Votes
Python intermediate help with dictionaries
0 Votes
Advertising in Sololearn
1 Votes
Fill in the blank to declare a static variable.
0 Votes
Marquee
1 Votes
RUST'S FUTURE
1 Votes
Any Advise?
1 Votes
Popsacles Aufgabe
1 Votes