What does `zip([1,2,3], [‘a’,’b’,’c’])` produce when converted to a list?

Python Developer Easy

Python Developer — Easy

What does `zip([1,2,3], [‘a’,’b’,’c’])` produce when converted to a list?

Key points

  • `zip` combines elements from two lists into tuples
  • The correct answer is a list of tuples with elements paired together
  • Option A is incorrect because it produces a list of lists, not tuples
  • Option C is incorrect because it produces a dictionary, not a list of tuples

Ready to go further?

Related questions