2dinput
Wed Mar 27 2024 10:30:45 GMT+0000 (Coordinated Universal Time)
Saved by
@pvignesh
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)
content_copyCOPY
Comments