Courses
Courses
Code Compiler
Code Compiler
Discuss
Pricing
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
What programming language should i learn to make applications or games?
1 Votes
I need help
1 Votes
My hearts are disappering :(
0 Votes
How to learn python fast than usual in sololearn?
0 Votes
What can html, css and javascript do
0 Votes
a phone or a laptop
0 Votes
Pressure and tension
2 Votes
Where is code bit
0 Votes
How to make a selection on a calculator in Python
0 Votes
ConducciĂłn de calor o Q=âkAdTdxQ = -k A \frac{dT}{dx}Q=âkAdxdT o Pared 2 mÂČ, espesor 0.1 m, k = 50 W/m°C, ÎT = 30°C â Q â 30,0
0 Votes