len() is an inbuilt function used to calculate the length of sequences like list, python string, and array.
my _list=[1,2,3,4,5]
len(my_list)