Important Notice:

Course Content
List Manipulation in Python (Chapter-7) M3-R5
About Lesson
Nested List:-

                कभी कभी हम एक लिस्ट को दूसरी लिस्ट के अंदर ले सकते हैं। इस प्रकार को nested list कहा जाता है।

a=[10,20,[30,40],50]

print(a)

print(a[0])

print(a[1])

print(a[2])

print(a[2][0])

print(a[2][1])

 

Nested List:-

                Sometimes we can take one list inside another list. This type is called nested list.

a=[10,20,[30,40],50]

print(a)

print(a[0])

print(a[1])

print(a[2])

print(a[2][0])

print(a[2][1])

error: Content is protected !!