Question: Create two variables x and y ( User will input these numbers ) . The maximum number for x and y is 5 , i
Create two variables x and y
User will input these numbers
The maximum number for x and y is
i
e
more than this we will print an error on the console. Similarly,
is the minimum.
x represents the number of lists
y represents the number of elements in each list
Create a nested list based on x and y
and fill with ZERO
For example, sample output for x
and y
: Enter Number of Lists
x
:
Enter Number of List Elements
y
:
The resulting List is :
Similarly, sample output for x
and y
should be: Enter Number of Lists
x
:
Enter Number of Lists Elements
y
:
The resulting List is :
Similarly,
Enter Number of Lists
:
Enter Number of List Elements
y
:
Error: Not allowed to create List
s
in this case
The resulting List is:
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
