In: Computer Science
list1 = [['Rose', 'Daisy'], 7, 0, 5.5, [1, 22, 2.45, 3, 6, 5.8]]
# printing the list
print (list1)
# printing the length of list by using len() funtion
print("number of items in list1 is:",len(list1))
#printing first char the first element of first list
print("The first item is the item with index 0 :",list1[0][0][0])
#printing the sum of last four elements in the list
print("The sum of the last four elements in the list1 :",list1[4][2]+list1[4][3]+list1[4][4]+list1[4][5])
# appending the list to list1
list1.append(['apple', 'pear', 'grape'])
print("final list1 after appending the list: ",list1)
Note : Please comment below if you have concerns. I am here to help you
If you like my answer please rate and help me it is very Imp for me