Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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))
Source by stackabuse.com #
 
PREVIOUS NEXT
Tagged: #check #items #list #python
ADD COMMENT
Topic
Name
3+4 =