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))