Home > Commands -> Lists -> len


Basic syntax: len(list1)   where list1 is a list.

     Yields the length, that is, the number of elements of list1. Result is an integer ≥ 0


  • Example 1
    list1=[0,1,2,3]
    len(list1)
    Result:
    4

  • Example 2
    list2=[]
    len(list2)
    Result:
    0

Wikipages: List Commands, count_if


Reference: Coming soon


Keywords: length, elements, lists, commands