1list1 = [2,3,4,3,10,3,5,6,3]
2elm_count = list1.count(3)
3print('The count of element: 3 is ', elm_count)
1list_a = ["Hello", 2, 15, "World", 34] #just the array
2
3number_of_elements = len(list_a)
4
5print("Number of elements in the list: ", number_of_elements)
6
1>>> mylist = [1,2,3] #list
2>>> len(mylist)
33
4>>> word = 'hello' # string
5>>> len(word)
65
7>>> vals = {'a':1,'b':2} #dictionary
8>>> len(vals)
92
10>>> tup = (4,5,6) # tuple
11>>> len(tup)
123
1# List of strings
2listOfElems = ['Hello', 'Ok', 'is', 'Ok', 'test', 'this', 'is', 'a', 'test']
3len(s)