.len() – Length in Python

Length of something, for example lets create a list which contains a number of integers:

value = [22, 3, 4, 2, 5]

Then we can determine the length of the list:

value = [22, 3, 4, 2, 5]
print len(value)
Output: 5

The 5 represents the number of values in the list.