• Home
Menu
Topic 17 Posts

Python

Newer Posts Page 3 of 3

Python: Transposing Lists With map and zip

By Stuart Colville in Code on 16 Oct 2007

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]] >…

Newer Posts Page 3 of 3
Muffin Research Labs © 2026 System Published with Ghost and Attila