Header Ads

Responsive Ads Here

Nested List

 Nested List


l = [[1,2,3], [4,5,6], [7,8,9]]

print(len(l))
print(l[1])

print(l[2][0])

for sl in l:
    for i in sl:
        print(i)

Powered by Blogger.