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 →

Also covered in

What to know first

Related concepts

Questions about built-in function

What is built-in function?

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

Which Manning books explain built-in function?

Tiny Python Projects: Learn coding and testing with puzzles and games and The Quick Python Book, Fourth Edition.

What should I know before learning built-in function?

Manning books that teach built-in function usually introduce list, Python, Map and indexing first.

What is the difference between built-in function and extend method?

A built-in function is a predefined callable operation supplied by a programming language, runtime, library, or execution environment. The Python list extend method appends each element of an iterable to the end of a list in iteration order.

What is built-in function part of?

Built-in function is part of list. A list is an ordered collection of elements arranged in a sequence.

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.