• 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
debate which is better
6 Votes
Im confused was that seriously it
0 Votes
Debugging issue?
0 Votes
Text editor
0 Votes
Which one should I start with to learn python. The developer path or both seperate beginner and intermediate python?
0 Votes
Is anyone else having this issue?
2 Votes
how to view only application
0 Votes
Arduino
2 Votes
If very confusing
0 Votes
Scraping
0 Votes