Question: Using list comprehension, create a variable called answer with the following value : [ 0 , 1 , 2 , 3 , 4 , 5
Using list comprehension, create a variable called answer with the following value :
It's a x nested list. rows, each row contains the numbers Don't worry about the formattingspacing I just added a bunch of returns to make things clearer. Your answer will be all on one giant line. Use nested list comprehension and range to accomplish this.
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
