Download E-books Automate the Boring Stuff with Python: Practical Programming for Total Beginners PDF

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

In Automate the uninteresting Stuff with Python, you will use Python to write down courses that do in mins what could take you hours to do by way of hand—no previous programming adventure required. as soon as you've gotten mastered the fundamentals of programming, you will create Python courses that without difficulty practice necessary and bold feats of automation to:

  • Search for textual content in a dossier or throughout a number of files
  • Create, replace, circulation, and rename records and folders
  • Search the internet and obtain on-line content
  • Update and structure information 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 tasks on the finish of every bankruptcy problem you to enhance these courses and use your newfound abilities to automate related tasks.

Don't spend some time doing paintings a well-trained monkey may perhaps do. whether you've got by no means written a line of code, you can also make your computing device do the grunt paintings. learn the way in Automate the uninteresting Stuff with Python.

Show description

Read Online or Download Automate the Boring Stuff with Python: Practical Programming for Total Beginners PDF

Best Programming books

Herb Schildt's C++ Programming Cookbook

Your final "How-To" consultant to C++ Programming! mythical programming writer Herb Schildt stocks a few of his favourite programming concepts during this high-powered C++ "cookbook. " geared up for fast reference, every one "recipe" indicates tips on how to accomplish a realistic programming job. A recipe starts off with an inventory of key parts (classes, services, and headers) through step by step directions that express the right way to gather them right into a whole resolution.

Structure and Interpretation of Computer Programs - 2nd Edition (MIT Electrical Engineering and Computer Science)

Constitution and Interpretation of desktop courses has had a dramatic effect on machine technology curricula over the last decade. This long-awaited revision comprises alterations through the textual content. There are new implementations of lots of the significant programming platforms within the e-book, together with the interpreters and compilers, and the authors have integrated many small adjustments that replicate their event educating the path at MIT because the first version used to be released.

Effective C++: 55 Specific Ways to Improve Your Programs and Designs (3rd Edition)

“Every C++ specialist wishes a replica of powerful C++. it really is an absolute must-read for someone taking into consideration doing severe C++ improvement. If you’ve by no means learn powerful C++ and also you imagine you recognize every thing approximately C++, re-evaluate. ”— Steve Schirripa, software program Engineer, Google “C++ and the C++ group have grown up within the final fifteen years, and the 3rd version of potent C++ displays this.

Software Testing with Visual Studio 2010 (Microsoft Windows Development Series)

Use visible Studio 2010’s leap forward trying out instruments to enhance caliber in the course of the complete software program Lifecycle   jointly, visible Studio 2010 final, visible Studio try expert 2010, Lab administration 2010, and group beginning Server provide Microsoft builders the main refined, well-integrated trying out resolution they’ve ever had.

Extra info for Automate the Boring Stuff with Python: Practical Programming for Total Beginners

Show sample text content

Py: theBoard = {'top-L': ' ', 'top-M': ' ', 'top-R': ' ', 'mid-L': ' ', 'mid-M': ' ', 'mid-R': ' ', 'low-L': ' ', 'low-M': ' ', 'low-R': ' '}The information constitution kept within the theBoard variable represents the tic-tactoe board in Figure 5-3. Figure 5-3. An empty tic-tac-toe board because the price for each key in theBoard is a single-space string, this dictionary represents a totally transparent board. If participant X went first and selected the center house, you'll characterize that board with this dictionary: theBoard = {'top-L': ' ', 'top-M': ' ', 'top-R': ' ', 'mid-L': ' ', 'mid-M': 'X', 'mid-R': ' ', 'low-L': ' ', 'low-M': ' ', 'low-R': ' '}The facts constitution in theBoard now represents the tic-tac-toe board in Figure 5-4. Figure 5-4. the 1st circulate A board the place participant O has gained through putting Os around the most sensible may appear like this: theBoard = {'top-L': 'O', 'top-M': 'O', 'top-R': 'O', 'mid-L': 'X', 'mid-M': 'X', 'mid-R': ' ', 'low-L': ' ', 'low-M': ' ', 'low-R': 'X'}The information constitution in theBoard now represents the tic-tac-toe board in Figure 5-5. Figure 5-5. participant O wins. in fact, the participant sees purely what's published to the monitor, now not the contents of variables. Let’s create a functionality to print the board dictionary onto the display. Make the next addition to ticTacToe. py (new code is in bold): theBoard = {'top-L': ' ', 'top-M': ' ', 'top-R': ' ', 'mid-L': ' ', 'mid-M': ' ', 'mid-R': ' ', 'low-L': ' ', 'low-M': ' ', 'low-R': ' '} def printBoard(board): print(board['top-L'] + '|' + board['top-M'] + '|' + board['top-R']) print('-+-+-') print(board['mid-L'] + '|' + board['mid-M'] + '|' + board['mid-R']) print('-+-+-') print(board['low-L'] + '|' + board['low-M'] + '|' + board['low-R']) printBoard(theBoard)When you run this application, printBoard() will print out a clean tic-tactoe board. | | -+-+- | | -+-+- | |The printBoard() functionality can deal with any tic-tac-toe info constitution you go it. try out altering the code to the next: theBoard = {'top-L': 'O', 'top-M': 'O', 'top-R': 'O', 'mid-L': 'X', 'mid-M': 'X', 'mid-R': ' ', 'low-L': ' ', 'low-M': ' ', 'low-R': 'X'} def printBoard(board): print(board['top-L'] + '|' + board['top-M'] + '|' + board['top-R']) print('-+-+-') print(board['mid-L'] + '|' + board['mid-M'] + '|' + board['mid-R']) print('-+-+-') print(board['low-L'] + '|' + board['low-M'] + '|' + board['low-R']) printBoard(theBoard)Now if you run this application, the recent board might be published to the display. O|O|O -+-+- X|X| -+-+- | |XBecause you created an information constitution to symbolize a tic-tac-toe board and wrote code in printBoard() to interpret that info constitution, you presently have a application that “models” the tic-tac-toe board. you will have equipped your information constitution in a different way (for instance, utilizing keys like 'TOP-LEFT' rather than 'top-L'), yet so long as the code works together with your facts constructions, you may have a appropriately operating software. for instance, the printBoard() functionality expects the tic-tac-toe info constitution to be a dictionary with keys for all 9 slots.

Rated 4.75 of 5 – based on 48 votes