5
Línea única anidada para bucles
Escribí esta función en python que transpone una matriz: def transpose(m): height = len(m) width = len(m[0]) return [ [ m[i][j] for i in range(0, height) ] for j in range(0, width) ] En el proceso, me di cuenta de que no entiendo completamente cómo se ejecutan los bucles for …