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)
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)
how to check how many items are in a list python
def length(items):
how_many = 0
for i in items:
how_many += 1
return how_many
a = [8,59,69,49,78,4,7]
print(length(a))
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us