Untitled

mail@pastecode.io avatar
unknown
plain_text
a month ago
339 B
1
Indexable
Never
list_data<-list(c("Red","Green","Black"),matrix(c(1,3,5,7,9,11),nrow=2),
                list("python","php","java"))
print("list:")
print(list_data)
names(list_data)=c("color","odd numbers","language(s)")
print("list with column names:")
print(list_data)
print('1st element:')
print(list_data[1])
print('2nd element:')
print(list_data[2])
Leave a Comment