Error loading page.
Try refreshing the page. If that doesn't work, there may be a network issue, and you can use our self test page to see what's preventing the page from loading.
Learn more about possible network issues or contact support for more help.
Cover image for The Python Book (21st Ed)

The Python Book (21st Ed)

The Python Book (21st Ed)
Magazine

It has seen a huge increase in popularity since the release and rise of the Raspberry Pi, for which Python is the officially recognised programming language. In this new edition of The Python Book, you’ll find plenty of creative projects to help you get to grips with the combination of your Raspberry Pi and Python’s powerful functionality, plus lots of tutorials that focus on Python’s effectiveness away from the tiny computer. You’ll learn all about how to code with Python from a standing start with our comprehensive masterclass, then go on to complete tutorials that will consolidate your skills and help you become fluent in the language. You’ll learn how to make Python work for you with tutorials on coding with Django, Flask, Pygame and even more useful third-party frameworks.

Welcome to The Python Book

The Python Book

Get started with Python • Always wanted to have a go at programming? No more excuses, because Python is the perfect way to get started!

50 ESSENTIAL PYTHON COMMANDS • Python is known as a very dense language, with lots of modules capable of doing almost anything. Here, we will look at the core essentials that everyone needs to know

Python Essentials • “Python is one of the most popular programming languages”

50 Python tips • Python is a programming language that lets you work more quickly and integrate your systems more effectively. Today, Python is one of the most popular programming languages in the open source space. Look around and you will find it running everywhere, from various configuration tools to XML parsing. Here is the collection of 50 gems to make your Python experience worthwhile…

Code a game of rock, paper, scissors • Learn how to do some basic Python coding by following our breakdown of a simple rock, paper, scissors game

Program a game of Hangman • Learn how to do some more Python coding by following our breakdown of a simple Hangman game

Play poker dice using Python • Put on your poker face and get ready to gamble as you hone your programming skill with a bit of poker dice

Create a graphical interface for Python games • Bring everything together with a Python GUI and take the next step in programming your own software

Bring graphics to simple Python games • Complete your trio of games with a graphical interface for the hangman and poker dice code

Embed Python in C • Here, we will learn how to use Python code within your usual C program to get the best of both worlds

Extend your Python • Find out how to digitally sign a release APK and upload it to an app store of your choice

Work with Python • “Most Linux distributions have a Python interpreter included in order to run system scripts”

PYTHON FOR PROFESSIONALS • Python is relied upon by web developers, engineers and academic researchers across the world. Here’s how to put your Python skills to professional use

System administration • Get the most out of Python in handling all of the day-to-day upkeep that keeps your system healthy

Running subprocesses from Python

Web development • Python has several frameworks available for all of your various web development tasks. We will look at some of the more popular ones

Other Python frameworks

Computational science • Python is fast becoming the go-to language for computational science

Interactive science with jupyter

ROS – Robot Operating System

Robotics and electronics • Robotics is the most direct interface between your code and the real world around you

Make extensions for Kodi with Python • Python is the world’s most popular easy-to-use open source language. Learn how to use it to build your own features for Kodi, the world’s favourite FOSS media centre

Scientific computing with...

Formats

  • OverDrive Magazine

Languages

  • English