Python: Transposing Lists With map and zip
I'm re-writing a piece of code to print into columns within a terminal and I wanted to join the nth items of each list together. Zip allows you to do just that >>> my_list=[[1,2,3],[4,5,6],[7,8,9,10]] >>>…
I'm re-writing a piece of code to print into columns within a terminal and I wanted to join the nth items of each list together. Zip allows you to do just that >>> my_list=[[1,2,3],[4,5,6],[7,8,9,10]] >>>…