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.
pop()Removes 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.
sort()Sorts a list on which the method is called in ascending order.
reverse()Reverses the order of elements in a list.
copy()Makes 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 any other accessibility standard. Every page is built against an automated accessibility gate, and our target for the published editions is WCAG 2.2 Level AA. If something is unusable, please tell us.