python find number of items in list code example
Example 1: python find the number of elements in a list
list1 = [2,3,4,3,10,3,5,6,3]
elm_count = list1.count(3)
print('The count of element: 3 is ', elm_count)
Example 2: list length in python
list1 = [1,2,3]
print(len(list))
Example 3: how to find the amount of numbers in a list on python
>>> someList=[]
>>> print len(someList)
0
Example 4: length of list python
thistuple = ("apple", "banana", "cherry")
print(len(thistuple))