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 (https://automatetheboringstuff.com/chapter0/). 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