My version of answers to practical tasks from Automate the Boring Stuff with Python. Please read the README file.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
Chapter 10
Chapter 11
Chapter 12
Chapter 13
Chapter 3
Chapter 4
Chapter 5
Chapter 6
Chapter 7
Chapter 8
Chapter 9


My version of answers to practical tasks from Automate the Boring Stuff with Python.

Here I will store examples of answers to practical tasks in mentioned online&book tutorial ( Please be aware that these answers are up-to-date with the skill required at certain point of tutorial, so, of course, it might be a lot better way to solve it and the code itself sometimes is against Python style guide. I hope you will find it handy, as much as I hope you will try to solve the task before skipping in here! Have fun.

Important! Scripts are few months old (from the time when I was doing this tutorial) and must be redone before we could call it a 'bearable code' ;)

As I have started to learn Java, so I rewrote some of this practical tasks in this language.

Table of Contents

Chapter 0 – Introduction
Chapter 1 – Python Basics
Chapter 2 – Flow Control
Chapter 3 – Functions
Chapter 4 – Lists
Chapter 5 – Dictionaries and Structuring Data
Chapter 6 – Manipulating Strings
Chapter 7 – Pattern Matching with Regular Expressions
Chapter 8 – Reading and Writing Files
Chapter 9 – Organizing Files
Chapter 10 – Debugging
Chapter 11 – Web Scraping
Chapter 12 – Working with Excel Spreadsheets
Chapter 13 – Working with PDF and Word Documents
Chapter 14 – Working with CSV Files and JSON Data
Chapter 15 – Keeping Time, Scheduling Tasks, and Launching Programs
Chapter 16 – Sending Email and Text Messages
Chapter 17 – Manipulating Images
Chapter 18 – Controlling the Keyboard and Mouse with GUI Automation