liveBook · Manning

Chapter 1: About Python

What you will learn in chapter 1 of The Quick Python Book, Fourth Edition

The introduction sets the book’s scope and explains why coding knowledge matters when using AI-generated code.

After this chapter you will be able to

Section by section

Introduction

The introduction sets the book’s scope and explains why coding knowledge matters when using AI-generated code.

Key terms: AI tools, large language models (LLMs), usable code

1.1 Why should I use Python?

This section makes a qualified case for choosing Python by describing the range of platforms, project sizes, and fields where it is useful.

Key terms: Python, programming problems, learning to program, cross-platform, rapid prototypes, graphical user interface (GUI) toolkit, web programming libraries, scientific computing, data science

1.2 What Python does well

This section introduces Python as a modern language whose strengths make it useful in many situations, though not every application.

Key terms: strengths, good choice, every application

1.2.1 Python is easy to use

This subsection explains why Python is easy to learn and use, and how that ease can speed up application development.

Key terms: types, objects, variables, type hints, type casting, loops, conditional statements, higher level of abstraction, standard code library, syntax

1.2.2 Python is expressive

This subsection explains Python’s expressiveness and illustrates it with a shorter way to swap two variables.

Key terms: expressive, lines of code, maintain, debug, swap, var1, var2, temp

1.2.3 Python is readable

This section explains why Python’s readability matters to people working with code and how required indentation helps make code easier to read.

Key terms: readability, indentation, blocks of code

1.2.4 Python is complete: “Batteries included”

This section explains Python’s “batteries included” philosophy and illustrates how its standard library supports useful work without extra installations.

Key terms: batteries included, Python standard library, modules

1.2.5 Python has a rich ecosystem of third-party libraries

This section explains why Python’s third-party ecosystem is valuable even though its standard library is extensive.

Key terms: batteries included, standard library, packages, libraries, frameworks, third-party libraries

1.2.6 Python is cross-platform

This section explains why Python code can run across many platforms.

Key terms: cross-platform, interpreted, Python interpreter, Jython, IronPython, MicroPython

1.2.7 Python is free

This section explains that Python is free to use, supported by an active community, and open to modification and contribution.

Key terms: free, open source model, commercial or personal applications, source code, open source software, contribute, well-supported, user community, Python internet forums

1.3 What Python is improving

This section frames Python’s weaker areas as factors to weigh when deciding whether it suits a particular situation.

Key terms: advantages, areas where Python doesn’t do as well

1.3.1 Python is getting faster

This section puts Python’s execution speed in perspective by explaining why it can be slower than C, when that matters, and how performance is improving.

Key terms: internal bytecode, Python interpreter, regular expressions, speed of development, modules written in C or C++, CPU-intensive portions, performance-critical application, multiple processor cores

1.3.2 Python doesn’t enforce variable types at compile time

This section explains Python’s object-based typing, the type mismatches it can allow, and how type hints help catch them before runtime.

Key terms: variables, objects, types, variable type mismatches, type hints, dynamic typing

1.3.3 Python is improving mobile support

This subsection describes Python’s improving but still limited support for mobile app development.

Key terms: mobile support, toolkits and frameworks, iOS, Android, commercial mobile apps

1.3.4 Python is improving support for multiple processors

This subsection explains a current limitation in how standard Python uses multiple processor cores and notes that work to improve it is ongoing.

Key terms: multiple-core processors, standard implementation of Python, global interpreter lock

1.4 Summary

Where this is used later

Concepts explained in this chapter

Chapter 2: Getting started →

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.