• Cursos
  • Compilador de Código
  • Debatir
  • Precios
  • Teams
Menu

Sesiones de PyR

a=[[0]*2]*2 a[0][0]=5 out: [[5,0],[5,0]]
listmultiplypython
6 Votos
5 Respuestas
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 Voto
4 Respuestas
11th Apr 2021, 3:40 PM
ice
ice - avatar
En tendencia hoy
Question
3 Votes
Hi guys I need some one to teach the String name how I can do it true because when I finish coding they give me NO OUTPUT
3 Votes
generic programming understanding memory ownership
0 Votes
Wayss
0 Votes
I dont now that how to do js
2 Votes
fully dynamic arrays
1 Votes
overloading operators << >>
1 Votes
Wishkit alternative for android
1 Votes
How to start in web dev?
0 Votes
Hi
0 Votes