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
How do i code
2 Votes
I'VE BEEN STUCK ON THIS FOR WEEKS
1 Votes
SQL Intermediate Union module
0 Votes
What does E0FError mean?
0 Votes
How can i add video to my html code. The <video> tag doesn't seem to work. or am i the one doing it wrong?
1 Votes
Why doesn't this work?
0 Votes
Whatâs wrong with the new GUI?
0 Votes
Some images in the folder need text from csv file
1 Votes
BADGE
0 Votes
What is the time complexity of this code ?
0 Votes