lists lists and functions there are number of built-in functions that can be used on lists that allow you to quickly look through list without writing your own loopsnums [ print(len(nums) print(max(nums) print(min(nums) print(sum(nums) print(sum(nums)/len(nums) the sum(function only works when the list elements are numbers the other functions (max()len()etc work with lists of strings and other types that can be comparable we could rewrite an earlier program that computed the average of list of numbers entered by the user using list firstthe program to compute an average without listtotal count while (true)inp input('enter number'if inp ='done'break value float(inptotal total value count count average total count print('average:'averagecodein this programwe have count and total variables to keep the number and running total of the user' numbers as we repeatedly prompt the user for number we could simply remember each number as the user entered it and use built-in functions to compute the sum and count at the end numlist list(while (true)inp input('enter number'if inp ='done'break value float(inp