DEV Community

Servando Conrado Andrade Martinez
Servando Conrado Andrade Martinez

Posted on

ejercicio

código, en Python, que aplane un arreglo de enteros o arreglos de enteros (que puede estar anidado arbitrariamente) a un arreglo plano de enteros.
Por ej. para el arreglo [1, [2, [3, [4, 5]]]] tu código debe devolver [1, 2, 3, 4, 5].

Top comments (1)

Collapse
 
servandoam profile image
Servando Conrado Andrade Martinez

Exercise requested and working, it is not the cleanest and most optimal code, but the necessary was done, insurance can be improved