0
All about 2d list?
What are 2d list and how can I take a 2d list as input?
3 Answers
+ 1
lst = [ ]
n = int(input("Enter number of elements : "))
Ā Ā
for i in range(0, n):
Ā Ā Ā Ā ele = [input(), int(input())]
Ā Ā Ā Ā lst.append(ele)
Ā Ā Ā Ā Ā Ā
print(lst)
+ 1
Yes
0
šæšš š²šššš š¾ššš so 2d list is basically like list in list