Combine two lists

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ramsrib
    New Member
    • Oct 2011
    • 1

    Combine two lists

    Is this possible to zip or combine two different sized list?
    Code:
    >>list1 = [1, 2, 3]
    >>list2 = [4, 5, 6, 7, 8]
    >>zip(list1, list2)
    [(1, 4), (2, 5), (3, 6)]
  • bvdet
    Recognized Expert Specialist
    • Oct 2006
    • 2851

    #2
    What do you expect the output to be?

    Comment

    Working...