Single Line Nested For Loops
问题 Wrote this function in python that transposes a matrix: 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) ] In the process I realized I don't fully understand how single line nested for loops execute. Please help me understand by answering the following questions: What is the order in which this for loop executes? If I had a triple nested for loop, what order would it execute? What would be equal the equal unnested for