a_list_of_lists = [[1,2,3], [4,5,6], [7,8,9]] length = sum([len(sub_list) for sub_list in a_list_of_lists]) print(length) # Returns: 9