First page Back Continue Last page Overview Graphics

Exercise

Given the following list:

my_list = [('a', 232),

('b', 343),

('c', 543),

('d', 23)]

How can you transform this list by using the *-operator and the zip function into the following format

[('a', 'b', 'c', 'd'),

(232, 343, 543, 23)]

Result:

list(zip(*my_list))