Question: Which of the following is the correct code to create this list [[2,3,4], [4, 5, 6], [6, 7, 8]] as nL nL = [list(range(i, 8))

Which of the following is the correct code to create this list [[2,3,4], [4, 5, 6], [6, 7, 8]] as nL nL = [list(range(i, 8)) for i in [2, 4, 6]] OI. O 11. NL = [list(range(i, i + 2)) for i in [2, 4, 6]] nL = [list(range(i, i + 3)) for i in [2, 4, 6]] O III. o iv. NL = [list(range(i, i + 3)) for i in [1, 2, 3]]
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
