Untitled

 avatar
unknown
plain_text
a year ago
149 B
5
Indexable
x=list(list(0,2),list(3,4),list(5,6))
print("original nested list:")
print(x)
e=lapply(x,'[[',2)
print("second element of the nested list:")
print(e)
Editor is loading...
Leave a Comment