python list number of elements

31

>>> len([1,2,3])
3
a = ["more", 4, 6]
print(len(a))
# prints 3
list_a = ["Hello", 2, 15, "World", 34]
number_of_elements = len(list_a)

Comments

Submit
0 Comments