Untitled

mail@pastecode.io avatar
unknown
plain_text
a month ago
149 B
1
Indexable
Never
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)
Leave a Comment