Built-in function
A built-in function is a predefined callable operation supplied by a programming language, runtime, library, or execution environment.
Tiny Python Projects: Learn coding and testing with puzzles and games
list.append() is a Python list method that adds one object as a single new element at the end of the list.
- How it is used
- Builds ordered lists incrementally, especially while collecting values or assembling output lines.
- How deep it goes
- Explains one-argument behavior, nested-list results, assertions, and the distinction from extend(), but does not cover implementation internals.
- Examples
- Demonstrates picnic items, a ransom-text accumulator, and Christmas-verse lines.
- What you can do after
- Apply list.append() to collect single values, verify mutations with assertions, and diagnose accidental nesting against extend().
The Quick Python Book, Fourth Edition
append is a Python list method that adds one object to the end of a list.
- How it is used
- Uses append for the common task of adding a single object to the end of a mutable list.
- How deep it goes
- Defines the method, demonstrates its output, and contrasts nested-list behavior with extend and slice assignment.
- Examples
- Demonstrates appending a string, appending a list as one nested element, and extending a list element by element.
- What you can do after
- Apply it via Python list syntax to add individual objects and choose extend when list contents should be merged.
Read how The Quick Python Book, Fourth Edition explains built-in function →
Related concepts
- slicinguses · Slicing selects or partitions a portion of an indexed sequence or multidimensional array, often along specified indices or dimensions.
- slice lengthuses · Slice length is the number of elements currently contained in a slice and accessible through its indices.
- nil sliceuses · A nil slice is a Go slice value with no backing array, zero length, zero capacity, and a nil value.
- listpart of · A list is an ordered collection of elements arranged in a sequence.
- extend methodcontrasts with · The Python list extend method appends each element of an iterable to the end of a list in iteration order.
- isinstanceincludes · isinstance is a Python built-in function that tests whether an object is an instance of a specified class or tuple of classes, including subclasses.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.

