built-in functions there are several built-in functions that operate on lists here are some useful onesfunction description len returns the number of items in the list sum returns the sum of the items in the list min returns the minimum of the items in the list max returns the maximum of the items in the list for examplethe following computes the average of the values in list laverage sum( )/len( list methods here are some list methodsmethod description append(xadds to the end of the list sort(sorts the list count(xreturns the number of times occurs in the list index(xreturns the location of the first occurrence of reverse(reverses the list remove(xremoves first occurrence of from the list pop(premoves the item at index and returns its value insert( ,xinserts at index of the list important note there is big difference between list methods and string methodsstring methods do not change the original stringbut list methods do change the original list to sort list ljust use sort(and not = sort(in factthe latter will not work at all wrong right replace(' ',' ' replace(' ',' ' sort( sort(other list methods there are few others list methods type help(listin the python shell to see some documentation for them