liveBook · Manning

None

None is Python’s singleton object representing the absence of a value or meaningful result.

How 4 Manning books explain it

Get Programming: Learn to code with Python

None is Python's special singleton value representing the absence of a value.

How it is used
Marks an absent value and represents the result of a function that omits a return statement.
How deep it goes
Explains None’s type, distinguishes it from "None", and traces its appearance when functions print or return values.
Examples
Uses an unnamed pet, type-identification checks, and say_name/show_kid calls to demonstrate absent values and implicit returns.
What you can do after
Evaluate/understand whether a function prints a value, returns a value, or supplies None automatically.

Read how Get Programming: Learn to code with Python explains None →

Python How-To

None is Python's singleton value representing the absence of a meaningful result or value.

How it is used
Uses None to initialize a possibly unsuccessful search, provide a safe mutable-parameter default, and identify an implicit function return.
How deep it goes
Works through missing matches, shared mutable defaults, and implicit returns without examining None’s implementation.
Examples
Shows an urgent-task search, a task-grouping function with a None default, and a list-appending function that implicitly returns None.
What you can do after
Apply it to handle an absent search result, avoid shared mutable defaults, and recognize an implicit function return.

Read how Python How-To explains None →

The Quick Python Book, Fourth Edition

None is Python's singleton object representing the absence of a value.

How it is used
Represents absence, deferred data, invalid values, and the default result of functions without an explicit return.
How deep it goes
Explains singleton behavior, Boolean falsiness, implicit returns, placeholders, and exception-based invalid-value handling.
Examples
Uses functions without return statements, invalid spreadsheet cells, cell conversion, and safe formula application.
What you can do after
Apply None as a placeholder, recognize implicit function results, and handle invalid values during spreadsheet-style evaluation.

Read how The Quick Python Book, Fourth Edition explains None →

Tiny Python Projects: Learn coding and testing with puzzles and games

None is Python's singleton value representing the absence of a meaningful value.

How it is used
Uses None to signal an absent input, missing function result, or intentionally non-returning in-place operation.
How deep it goes
Explains None through list mutation, randomization, omitted arguments, and implicit returns, without descending into object internals.
Examples
Demonstrates None with list.sort(), random.shuffle(), omitted argparse inputs, and a Tic-Tac-Toe winner search.
What you can do after
Diagnose accidental None assignments and interpret None as a deliberate absence signal in command-line programs and functions.

Read how Tiny Python Projects: Learn coding and testing with puzzles and games explains None →

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.