What is the complexity of zip (*matrix) in python.

if i have a matrix, I can easily obtain its transpose by doing a zip(*matrix) as opposed to using 2 for loops that can make the complexity as O(n^2). However, I was wondering how efficient is zip(*matrix)? Can anyone please help? Thanks!

Comments (1)