Introduction to Python ProgrammingXYZ Homework Edition

⇩ Download ▾

9.6 Chapter summary

Highlights from this chapter include:

At this point, you should be able to write programs using lists.

Table 9.1 Chapter 9 reference.
FunctionDescription
append(element)Adds the specified element to the end of a list.
remove(element)Removes the specified element from the list if the element exists.
popRemoves the last element of a list.
max(list)Returns the maximum element of the list specified.
min(list)Returns the maximum element of the list specified.
sum(list)Returns the summation of a list composed of numbers.
sortSorts a list on which the method is called in ascending order.
reverseReverses the order of elements in a list.
copyMakes a complete copy of a list.

Adapted from Introduction to Python Programming by OpenStax (openstax.org), licensed under CC BY-NC-SA 4.0. Changes were made. License: CC-BY-NC-SA-4.0.

These eBooks are a prerelease and are not yet certified conformant with WCAG 2.1 AA or ADA Title II. Every page is built against an automated accessibility gate, and the published editions will meet ADA Title II requirements when they release in late September 2026. If something is unusable, please tell us.