Question: 7. Print out a list of lists pairing the elements, at each index, from four separate lists. For example, given the lists ids =
7. Print out a list of lists pairing the elements, at each index, from four separate lists. For example, given the lists ids = [1,2,3] course_number = ['EC04421', 'EC04932', 'EC04903'] course_name = ['Econometrics', 'Topics in Theory', 'Seminar'] course_prof = ['P.Bidarkota', 'D.Yilmaz kuday', 'J.Bull'] your code should print the single list [(1, 'EC04421', 'Econometrics', 'P.Bidarkota'), (2, 'EC04932', 'Topics in Theory', 'D.Yilmaz kuday'), (3, 'EC04903', 'Seminar', 'J.Bull')]
Step by Step Solution
There are 3 Steps involved in it
You can achieve this by using the zip function to it... View full answer
Get step-by-step solutions from verified subject matter experts
