Question: Creating a 2 D list In this short project, you will create a 2 D list or random integers using the . append ( )
Creating a D list
In this short project, you will create a D list or random integers using the append method and nested
loops meaning a loop inside a loop
Name your file createtwodlist.py
Remember to import random and set the seed to
Your function should take a width and length as arguments. The length represents how many sublists
you need in your main list. The width is the length of each individual sublist they are all the same length
Each element in your sublist will be a random integer between and
mytwodlist createlist
print mytwodlist
mytwodlist createlist
print mytwodlist
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
