What is the syntax to return the length of a list?

#length function returns an integer value
len(<list name>)
#examples
>>> letters=['A','B','C','D','E']
>>> len(letters)
5

 

Advertisements