get list length p[y code example Example 1: list length in python list1 = [1,2,3] print(len(list)) Example 2: list length python >>> len([1, 2, 3]) 3