fork(1) download
  1. def imprimir_lista(lista):
  2. for elemento in lista:
  3. if isinstance(elemento, list):
  4. imprimir_lista(elemento)
  5. else:
  6. print(elemento)
  7.  
  8. lista = [1,2,3,4,5,[6,7,8,9],10,11,12,13,14,15]
  9. imprimir_lista(lista)
Success #stdin #stdout 0.02s 9380KB
stdin
Standard input is empty
stdout
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15