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 →
Also covered in
- 100 Go Mistakes and How to Avoid Them
- Software Engineering for Data ScientistsIn early access (MEAP)
- Python How-To
- Build Financial Software with Generative AI (From Scratch)
- Go by Example
- Get Programming: Learn to code with Python
- Systems Programming with ZigIn early access (MEAP)
- Learn AI-Assisted Python Programming, Second Edition
- Python Workout: 50 ten-minute exercises
What to know first
- listA list is an ordered collection of elements arranged in a sequence.
- PythonPython is a high-level, general-purpose, dynamically typed programming language with readable syntax and support for multiple programming paradigms.
- MapA map is an associative data structure that stores key-value associations and supports retrieving values by key.
- indexingIndexing is the process of assigning or using positions, keys, or lookup structures to identify and access elements or records.
Related concepts
- slicinguses · Slicing selects or partitions a portion of an indexed sequence or multidimensional array, often along specified indices or dimensions.
- nil sliceuses · A nil slice is a Go slice value with no backing array, zero length, zero capacity, and a nil value.
- slice lengthuses · Slice length is the number of elements currently contained in a Go slice and accessible through its indices.
- 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.
- augmented assignmentalternative to · Augmented assignment is syntax that combines an operation with assignment to update a variable or object using its current value.
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.

