In this revised edition of The Python Book, you’ll find plenty of creative projects to help you get to grips with one of the fastest-growing programming languages around. Its powerful functionality works brilliantly with the Raspberry Pi, but you'll also find plenty of tutorials that focus on Python’s effectiveness away from the Pi. You’ll learn how to code with Python from the very beginning with our comprehensive masterclass, then go on to complete tutorials to consolidate your skills and become fluent in the language. Become a true Python expert with the wealth of information contained in this bookazine.
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
Robotics and electronics • Robotics is the most direct interface between your code and the real world around you
ROS – Robot Operating System
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 NumPy • Powerful calculations with NumPy, SciPy and Matplotlib
Instant messaging with Python • How to program both the client – complete with a GUI –...