two lists into one list of tules

Solutions on MaxInterview for two lists into one list of tules by the best coders in the world

showing results for - "two lists into one list of tules"
Lucy
17 Mar 2019
1>>> list_a = [1, 2, 3, 4]
2>>> list_b = [5, 6, 7, 8]
3>>> list(zip(list_a, list_b))
4[(1, 5), (2, 6), (3, 7), (4, 8)]
5