Press "Enter" to skip to content

Automate the boring stuff with python : practical by Al Sweigart

By Al Sweigart

If you have ever spent hours renaming documents or updating enormous quantities of spreadsheet cells, you know the way tedious projects like those might be. yet what in case you can have your desktop do them for you?

In Automate the uninteresting Stuff with Python, you will how you can use Python to put in writing courses that do in mins what may take you hours to do by way of hand—no earlier programming event required. as soon as you will have mastered the fundamentals of programming, you are going to create Python courses that easily practice worthy and bold feats of automation to:

  • Search for textual content in a dossier or throughout a number of files
  • Create, replace, circulate, and rename documents and folders
  • Search the net and obtain on-line content
  • Update and layout facts in Excel spreadsheets of any size
  • Split, merge, watermark, and encrypt PDFs
  • Send reminder emails and textual content notifications
  • Fill out on-line forms

Step-by-step directions stroll you thru every one software, and perform initiatives on the finish of every bankruptcy problem you to enhance these courses and use your newfound abilities to automate comparable tasks.

Don't spend a while doing paintings a well-trained monkey may do. no matter if you've gotten by no means written a line of code, you can also make your desktop do the grunt paintings. find out how in Automate the dull Stuff with Python.

Show description

Read Online or Download Automate the boring stuff with python : practical programming for total beginners PDF

Best introductory & beginning books

Beginning Game Programming

This e-book offers an creation to the complete box of online game programming. As readers paintings in the course of the publication, they'll produce operating video games: one in second and one in 3D--offering a great advent to DirectX programming. starting with an advent to uncomplicated home windows programming, this publication fast advances to the fundamentals of DirectX programming, relocating up from surfaces to textures after which to 3D types.

Basic Teachings of the Great Philosophers

A whole precis of the perspectives of crucial philosophers in Western civilization. each one significant box of philosophic inquiry includes a separate bankruptcy for higher accessibility. contains Plato, Descartes, Spinoza, Kant, Hegel, Dewey, Sartre, etc.

How to Make a Quilt: Learn Basic Sewing Techniques for Creating Patchwork Quilts and Projects. A Storey BASICS® Title

With easy step by step directions that require in simple terms easy stitching talents, Barbara Weiland Talbert indicates you the way to make your personal attractive and sturdy quilts. Taking you thru the full quilting approach in an easy-to-follow series, Talbert indicates you the way to choose an appropriate layout, opt for the easiest cloth, minimize shapes, piece jointly blocks, gather the duvet most sensible, and end your undertaking.

Additional resources for Automate the boring stuff with python : practical programming for total beginners

Sample text

You can name a variable anything as long as it obeys the following three rules: 1. It can be only one word. 2. It can use only letters, numbers, and the underscore (_) character. 3. It can’t begin with a number. Table 1-3: Valid and Invalid Variable Names 20 Chapter 1 Valid variable names Invalid variable names balance current-balance (hyphens are not allowed) currentBalance current balance (spaces are not allowed) current_balance 4account (can’t begin with a number) _spam 42 (can’t begin with a number) SPAM total_$um (special characters like $ are not allowed) account4 'hello' (special characters like ' are not allowed) Variable names are case-sensitive, meaning that spam, SPAM, Spam, and sPaM are four different variables.

Chapter 12: Working with Excel Spreadsheets Covers programmatically manipulating Excel spreadsheets so that you don’t have to read them. This is helpful when the number of documents you have to analyze is in the hundreds or thousands. Chapter 13: Working with PDF and Word Documents Covers programmatically reading Word and PDF documents. Chapter 14: Working with CSV Files and JSON Data Continues to explain how to programmatically manipulate documents with CSV and JSON files. Chapter 15: Keeping Time, Scheduling Tasks, and Launching Programs Explains how time and dates are handled by Python programs and how to schedule your computer to perform tasks at certain times.

End Figure 2-4: The flowchart for an else statement elif Statements While only one of the if or else clauses will execute, you may have a case where you want one of many possible clauses to execute. The elif statement is an “else if” statement that always follows an if or another elif statement. It provides another condition that is checked only if any of the previous conditions were False. In code, an elif statement always consists of the following: • • • • The elif keyword A condition (that is, an expression that evaluates to True or False) A colon Starting on the next line, an indented block of code (called the elif clause) Let’s add an elif to the name checker to see this statement in action.

Download PDF sample

Rated 4.05 of 5 – based on 48 votes