Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Making sure list of lists is returned (no tuples) solution in Clear category for Transposed Matrix by MMM_AAA_NNN
# zip(*data) does the necessary transformation, but yields a list of tuples.
# The list of tuples actually passes all the tests for this task,
# but to make sure we reutrn list of lists as stated in the task,
# I have added additional transmutation.
def checkio(data):
return [list(line) for line in zip(*data)]
March 24, 2015