Answers for "how to find the number of elements in a list python"

6

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)
Posted by: Guest on October-16-2020
5

how to find length of list python

my_list = [1,2,3,4,5,6,7,8,9,10]

length_of_list = len(my_list)
Posted by: Guest on July-02-2020

Code answers related to "how to find the number of elements in a list python"

Python Answers by Framework

Browse Popular Code Answers by Language