| CMSC 201 |
Lab 7: Practice2D ListsPart 1Take in a number from the user called listNum. Using a foor loop, create a list containing exactly that number of lists inside it. So if the user enters 4, your program should print out:[ [], [], [], [] ] Part 2Given the following list:myList = [ [1, 2, 3, 4], [5, 6, 7, 8], [9, 10, 11, 12]] Print out each of the inner lists. Your output should look like this: [1, 2, 3, 4] [5, 6, 7, 8] [9, 10, 11, 12] Part 3Write a program that finds the sum of a 1D list. Part 4
Given the following list:
|