• Cours
  • Compilateur de code
  • Discuter
  • Tarification
  • Équipes
Menu

Discussions Q&R

a=[[0]*2]*2 a[0][0]=5 out: [[5,0],[5,0]]
listmultiplypython
6 Votes
5 Réponses
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 Vote
4 Réponses
11th Apr 2021, 3:40 PM
ice
ice - avatar
Aujourd'hui en vedette
Activity Section in Profile has Gone
2 Votes
API
0 Votes
Which is easier to learn first between python and JS?
0 Votes
Does sololearn teaches on how to create games
0 Votes
General Inquiry
0 Votes
how to be good at coding
1 Votes
Help for roadmap
0 Votes
Why anybody does not check my new code bits it's sad for my hard work
1 Votes
Sockets, etc
0 Votes
I HAVE A PROBLEM I CANNOT ABLE TO SEND MESSAGE ANYONE AND ALSO MY MESSAGE SECTION NOT AVAILABLE "PLEASE ACTIVATE YOUR ACCOUNT
0 Votes