liveBook · Manning

Built-in function

A built-in function is a predefined callable operation supplied by a programming language, runtime, library, or execution environment.

How 2 Manning books explain it

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().

Read how Tiny Python Projects: Learn coding and testing with puzzles and games explains built-in function →

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

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.