3 Basics of the Python Language
29
3.1 Variables and Data Types
30
3.4 Conditionals with "if," "elif," and "else"
32
3.5 Comparison Operators
33
3.10 Lists, Sets, Tuples, and Dictionaries
38
3.11 "for" Loop for Lists and More
39
3.12 Sample Program: Counting Words
41
3.13 Writing Your Own Functions
44
3.14.1 Create a New List from a List
48
3.14.2 Filtering Elements from a List
49
3.14.3 Concatenating Strings Without "+"
49
3.14.4 Searching for a Value in a List
49
3.14.5 Tuple Decomposition
50
3.14.7 Iterating over the Key-Value Pairs in a Dictionary
50
3.14.8 Swapping Variable Values
51
3.14.9 Assigning a Boolean Directly
51
3.14.10 Case Differentiation
51
3.14.11 Retrieving a Default Value from a Dictionary
51
3.14.12 Walrus Operator
52
3.15 Importing Modules and Installing Packages with "pip"
52
3.16 Virtual Environments
54
12 Automating Routine Tasks
247
12.1 Retrieving Data via the API and Storing It in a Database
247
12.2 Creating Charts from the Database and Save as Image Files
250
12.3 Sending an Email When There’s Something New
252
12.4 Sending Screenshots of Web Pages via Messenger
255
12.5 Images: Reducing File Sizes, Finding Locations, and Cleaning Up
258
12.6 PDF: Splitting, Merging, and Consolidating Files
261
12.7 Recognizing Text on Business Card Images Using OCR and Saving to Your Phone’s Address Book
263
12.8 Creating Invoices, Mail Merges, and Other Documents
265
12.9 Running Python Scripts on a Schedule
268
12.10 Logging in Automations
271