Cursos
Iniciar sesiónComenzar a aprender IA
Cursos
Iniciar sesiónComenzar a aprender IA

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
Ошибка в приложении Sololearn
1 Votes
Is anyone else experiencing this Sololearn issue?
0 Votes
NEO V2.0
1 Votes
Sololearn course
1 Votes
Best language?
0 Votes
solo learn program issue - iPhone?
1 Votes
How do I keep myself motivated in coding
0 Votes
Is it possible to write Rust code that is as compact and expressive as Python?
0 Votes
Learn - multiple choice course questions display in one box making it impossible to continue
1 Votes
Sql practice
0 Votes