Preview:
c=int(input("enter no.of elements present in list"))
r=int(input("enter no.of elements presend in sub list"))
m1=[]
for i in range (c):
    n=[]
    for j in range (r):
        x=int(input())
        n.append(x)
    
    m1.append(n)
print (m1)
downloadDownload PNG downloadDownload JPEG downloadDownload SVG

Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!

Click to optimize width for Twitter