Teaches you to program in the powerful Python language – the language used to program the Raspberry Pi. Create your own executable programs by copying the book’s examples.
Covers Python 3.7
By: Mike McGrath
Publication Date: July 23rd, 2018
View first chapter and Table of Contents – FREE!
ebook (PDF) version also available
Python in easy steps, 2nd edition instructs you how to program in the powerful Python language, giving complete examples that illustrate each aspect with colourized source code.
Python in easy steps, 2nd edition begins by explaining how to install the free Python interpreter so you can quickly begin to create your own executable programs by copying the book’s examples. It demonstrates all the Python language basics before moving on to provide examples of Object Oriented Programming (OOP) and CGI scripting to handle web form data. The book concludes by demonstrating how you can use your acquired knowledge to create and deploy graphical windowed applications.
Python in easy steps, 2nd edition makes no assumption you have previous knowledge of any programming language so it’s ideal for the newcomer to computer programming. It has an easy-to-follow style that will appeal to programmers moving from another programming language, and to the student who is studying Python programming at school or college, and to those seeking a career in computing who need a fundamental understanding of computer programming.
The Python 3.x language is under active development so frequent new releases are made available as small improvements are added to the language and Python in easy steps, 2nd edition features the very latest versions of Python at the time of publication. Python development is one of evolution, rather than revolution, so the examples provided in the book can be used in subsequent releases – simply download the latest version of Python then follow the easy steps.
Python is the language used to program the Raspberry Pi – covered by Raspberry Pi in easy steps and Raspberry Pi 3 in easy steps
This second edition is updated to cover Python 3.7.
About the author
Mike McGrath now lives in South-east Europe, on the sun-kissed shores of the Aegean Sea. Mike gained his extensive knowledge of computer languages while working as a developer contracting to companies around the world. His interests include coins of ancient Greece, dining-out with friends, and the ongoing evolution of the world wide web.
Freely download the original source code for checking against your own work from our Downloads page
Revisions (all code is correct in code examples for downloading):
(Page corrections below have been incorporated in the ebook version from September 21st, 2020 onwards except for the correction to page 64)
Further revised pages
Revised pages for 2019 reprint:
Revised pages for 2018 original print:
Reviews from Amazon readers:
5 stars This book is the easiest to follow for beginners
I am using Python ver. 3.8.5 but this book is still relevant to this version. Very easy to understand for a complete beginner (That’s me!). very structured so I don’t get lost. Plenty of examples and I get the code downloaded so I do not spent lots of time typing! Fully recommended 2nd. edition book for a starter in Python. (The 2nd edition covers the latter version 3.7 of Python.)
5 stars Up To Date and Written Well
I took a while to select this book and made the right choice. A good friend was pushing The Idiot’s Guide but that refers to the previous version of Python so had mismatches to commands actually used. This book is bang up to date.
I’m an absolute beginner and a hobbyist, so not in a hurry. I worked through the first section doing exercises then set myself an objective. So now I am writing a program to get the user to perform a card trick. So, instead of studying each page, I use the book to solve my programming problems. Excellent.
5 stars Easy to read, follow along and understand.
I am an experienced developer and was looking for an easy introduction to Python that would be entertaining to read, have lots of examples that I could try on my Raspberry Pi 4, and would leave me with some useful skills. This book ticked all the boxes and was well proofed – I found no errors.