Answers for "how to check all elements in list in python"

2

how to check how many items are in a list python

list_a = ["Hello", 2, 15, "World", 34]

number_of_elements = len(list_a)

print("Number of elements in the list: ", number_of_elements)
Posted by: Guest on March-28-2021
2

find all element in list python

indices = [i for i, x in enumerate(my_list) if x == "whatever"]
Posted by: Guest on March-01-2021

Code answers related to "how to check all elements in list in python"

Python Answers by Framework

Browse Popular Code Answers by Language