• Cursussen
  • Code Compiler
  • Discussiëren
  • Prijzen
  • Teams
Menu

Q&A Discussies

a=[[0]*2]*2 a[0][0]=5 out: [[5,0],[5,0]]
listmultiplypython
6 Stemmen
5 Antwoorden
5th Sep 2021, 12:39 PM
Arsalan [Inactive]
Arsalan [Inactive] - avatar
who can tell me what happens in this code?
a[0][0]=5a=[[0]*2]*2b[0][0]=5b=[[0,0],[0,0]]print(a,b)
1 Stem
4 Antwoorden
11th Apr 2021, 3:40 PM
ice
ice - avatar
Populair vandaag
Is it possible to convert .zip file to apk? If yes, how??
1 Votes
Pointers cpp
2 Votes
I think the heart system is ridiculous, 5 hearts that refill after like 5 hours? That is really just crazy to me.
1 Votes
What do you think of this code and what are your suggestions for developing and modifying it?, How can I develop myself more?
0 Votes
Why can’t I use double “ in python?
0 Votes
Is pro worth the money ?
1 Votes
2 cases not correct what's the problem
1 Votes
Drawing images in java
2 Votes
Need Guidance: AI Tools for Creating an App Prototype & UI/UX Design
1 Votes
You’re free to give me your advice! 🚨
0 Votes