---You will get 2 inputs 1st parameter is the no. of elements in the list and the 2nd parameter is the no. of lists.
the elements inside the list should start from 0 and end at n-1.
I need to get an output like this:
Example -
Input - main(8,3)
Output - [
[0,1,2,3,4,5,6,7],
[0,1,2,3,4,5,6,7],
[0,1,2,3,4,5,6,7],
]
What I have tried:
what i tried was:
def main(i,j):
m=[]
l=list(range(i))
m.append([l]*j)
return m