for list length code example Example 1: list length in python list1 = [1,2,3] print(len(list)) Example 2: list length python len([1,2,3,4,5,6,7])