• Kursy
  • Kompilator kodu
  • Dyskusja
  • Cennik
  • Zespoły
Menu

Dyskusje Q&A

a=[[0]*2]*2 a[0][0]=5 out: [[5,0],[5,0]]
listmultiplypython
6 głosów
5 odpowiedzi
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 Głos
4 odpowiedzi
11th Apr 2021, 3:40 PM
ice
ice - avatar
Popularne dzisiaj
How to make a game code
1 Votes
How to add image and audio
1 Votes
What is HelloWorld
1 Votes
About create tuples [Solved]
0 Votes
Headless CMS
1 Votes
Can anyone fix for me this code
1 Votes
Missing]
0 Votes
HTML
0 Votes
How do you make Event listeners Minecraft Spigot plugin development
0 Votes
Website tips
0 Votes