Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Presentation

Automate the Boring Stuff with Python, 2nd Edition

Rating
-
Sold
-
Pages
610
Uploaded on
09-08-2024
Written in
2019/2020

"If you’ve ever spent hours renaming files or updating hundreds of spreadsheet cells, you know how tedious tasks like these can be. But what if you could have your computer do them for you? In this fully revised second edition of the best-selling classic Automate the Boring Stuff with Python, you’ll learn how to use Python to write programs that do in minutes what would take you hours to do by hand—no prior programming experience required. You’ll learn the basics Python and explore Python’s rich library of modules for performing specific tasks, like scraping data off websites, reading PDF and Word documents, and automating clicking and typing tasks. The second edition of this international fan favorite includes a brand-new chapter on input validation, as well as tutorials on automating Gmail and Google Sheets, plus tips on automatically updating CSV files. You’ll learn how to create programs that effortlessly perform useful feats of automation to: •Search for text in a file or across multiple files •Create, update, move, and rename files and folders •Search the Web and download online content •Update and format data in Excel spreadsheets of any size •Split, merge, watermark, and encrypt PDFs •Send email responses and text notifications"

Show more Read less
Institution
Module

Content preview

,BRIEF CONTENTS
Acknowledgments

Introduction

PART I: PYTHON PROGRAMMING BASICS

Chapter 1: Python Basics

Chapter 2: Flow Control

Chapter 3: Functions

Chapter 4: Lists

Chapter 5: Dictionaries and Structuring Data

Chapter 6: Manipulating Strings

PART II: AUTOMATING TASKS

Chapter 7: Pattern Matching with Regular Expressions

Chapter 8: Input Validation

Chapter 9: Reading and Writing Files

Chapter 10: Organizing Files

Chapter 11: Debugging

Chapter 12: Web Scraping

Chapter 13: Working with Excel Spreadsheets

Chapter 14: Working with Google Sheets

Chapter 15: Working with PDF and Word Documents

Chapter 16: Working with CSV Files and JSON Data

Chapter 17: Keeping Time, Scheduling Tasks, and Launching Programs

Chapter 18: Sending Email and Text Messages

,Chapter 19: Manipulating Images

Chapter 20: Controlling the Keyboard and Mouse with GUI Automation

Appendix A: Installing Third-Party Modules

Appendix B: Running Programs

Appendix C: Answers to the Practice Questions

Index

CONTENTS IN DETAIL
ACKNOWLEDGMENTS

INTRODUCTION

Whom Is This Book For?

Conventions

What Is Programming?

What Is Python?

Programmers Don’t Need to Know Much Math

You Are Not Too Old to Learn Programming

Programming Is a Creative Activity

About This Book

Downloading and Installing Python

Downloading and Installing Mu

Starting Mu

Starting IDLE

The Interactive Shell

Installing Third-Party Modules

, How to Find Help

Asking Smart Programming Questions

Summary

PART I: PYTHON PROGRAMMING BASICS

1
PYTHON BASICS

Entering Expressions into the Interactive Shell

The Integer, Floating-Point, and String Data Types

String Concatenation and Replication

Storing Values in Variables

Assignment Statements

Variable Names

Your First Program

Dissecting Your Program

Comments

The print() Function

The input() Function

Printing the User’s Name

The len() Function

The str(), int(), and float() Functions

Summary

Practice Questions

2
FLOW CONTROL

Written for

Module

Document information

Uploaded on
August 9, 2024
Number of pages
610
Written in
2019/2020
Type
PRESENTATION
Person
Unknown

Subjects

£4.28
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller
Seller avatar
RobertCuong

Get to know the seller

Seller avatar
RobertCuong Telecommunication
Follow You need to be logged in order to follow users or courses
Sold
-
Member since
3 year
Number of followers
0
Documents
225
Last sold
-
GPON and WiFi

+ SDH solution based on Fujitsu/Alcatel/Huawei devices in deployment and troubleshoot + Switching and Routing network fundamental and advance + GPON solution with deep knowledge of PLOAM/OMCI, activation procedure. Analysis of Private/Public OMCI + WiFi solution with WiFi Management/Control/Data. WiFi bandsteering, WiFi mesh, and WiFi 6, 6E, 7, ...

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Trending documents

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their exams and reviewed by others who've used these revision notes.

Didn't get what you expected? Choose another document

No problem! You can straightaway pick a different document that better suits what you're after.

Pay as you like, start learning straight away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and smashed it. It really can be that simple.”

Alisha Student

Frequently asked questions