Real Python: An Introduction to Python Through Practical Examples

By Fletcher Heisler

An ebook to educate programming via hands-on, fascinating examples which are worthwhile and fun!

Python is a smart programming language. It's loose, strong, more uncomplicated to learn than such a lot languages, and has extensions to be had to do nearly something you may think automatically.

But how do you certainly use it? There are a whole lot assets in the market for studying Python, yet none of them are very useful or attention-grabbing - as an alternative, they move over every one thought one after the other, by no means tying whatever jointly, yet spending lots of time misplaced in technical language, discussing the twenty other ways to complete every one easy task...

I are looking to write an book that at last supplies a concise creation to every thing it's possible you'll really are looking to do with Python.

We'll begin with a brief yet thorough review of the entire fundamentals, so that you don't even desire any earlier adventure with programming. however the majority of the booklet may be spent build up instance code to unravel attention-grabbing real-world problems.

Python is astounding for automating repetitive initiatives that will in a different way take you hours - for example, speedy accumulating info from the internet, or renaming hundreds of thousands of documents. the various themes that I'm making plans to cover:

Collecting info from webpages (web scraping)
Interacting with PDF records - analyzing facts, developing PDFs, enhancing pages, including passwords...
Interacting with Excel records (less performance in OS X)
Calling different open air courses from inside of Python
Files - read/write/modify, unzip, rename, flow, etc.
Basic video game development
Interacting with SQL databases (internal and ODBC connections)
GUI (Graphical consumer Interface) layout - growing uncomplicated point-and-click courses that anybody can use
Any different themes that you simply, my backers, are so much in!
Update: by way of renowned call for, I'll be including net program development

All similar path fabrics downloadable at:

Show description

Quick preview of Real Python: An Introduction to Python Through Practical Examples PDF

Similar Python books

Exploring Python

Exploring Python takes an energetic studying method which engages the coed as an equivalent accomplice within the means of studying the thrill, academic, and robust programming language. This method instills behavior that scholars will hold with them all through their programming profession and is helping them hold and use the data they've got realized.

Python Forensics: A workbench for inventing and sharing digital forensic technology

Python Forensics presents many never-before-published confirmed forensic modules, libraries, and options that may be used correct out of the field. moreover, specified guide and documentation supplied with the code samples will permit even amateur Python programmers so as to add their very own distinctive twists or use the versions offered to construct new options.

Core Python Applications Programming (3rd Edition) (Core Series)

Already be aware of Python yet are looking to research extra? much more? Dive right into a number of themes utilized in perform for real-world functions. Covers common expressions, Internet/network programming, GUIs, SQL/databases/ORMs, threading, and net improvement. find out about modern improvement tendencies similar to Google+, Twitter, MongoDB, OAuth, Python three migration, and Java/Jython.

Starting Out with Python (3rd Edition)

Observe: you're paying for a standalone product; MyProgrammingLab doesn't come packaged with this content material. if you'd like to buy either the actual textual content and MyProgrammingLab  look for ISBN-10: 0133862259/ISBN-13: 978013386225 . That package deal comprises ISBN-10: 0133582736/ISBN-13: 9780133582734  and ISBN-10: 0133759113 /ISBN-13: 9780133759112.

Additional resources for Real Python: An Introduction to Python Through Practical Examples

Show sample text content

Py from the command steered as defined within the set up part. OS X: when you've got easy_install manage, you then can set up the package deal by means of typing “sudo easy_install easygui” into the Terminal. another way, obtain the compressed . tar. gz dossier, decompress it, then set up the package deal through working Python one hundred sixty five RealPython. com genuine Python on setup. py from Terminal as defined within the deploy part. Debian/Linux: sort “sudo apt-get set up python-easygui”. EasyGUI isn't the same as different GUI modules since it does not depend on occasions.

Three: Create a excessive rankings record from CSV info ? Write a script “high_scores. py” that would learn in a CSV dossier of clients' rankings and demonstrate the top rating for every individual. The dossier you are going to learn in is termed “scores. csv” and is found within the bankruptcy 7 perform records folder. you want to shop the excessive rankings as values in a dictionary with the linked names as dictionary keys. this fashion, as you learn in every one row of knowledge, if the identify already has a ranking linked to it within the dictionary, you could examine those ratings and judge even if to interchange the “current” excessive ranking within the dictionary.

For example, rather than typing out our sequential checklist of numbers right into a matrix, lets have imported arange() after which reshaped the series right into a two-dimensional matrix: >>> from numpy import arange >>> matrix = arange(1,10) # an array of numbers 1 via nine >>> print matrix [1 2 three four five 6 7 eight nine] >>> matrix = matrix. reshape(3,3) >>> print matrix 1 2 three] [4 five 6] [7 eight 9 >>> back, similar to with range(), utilizing arange(1,10) will go back the numbers 1 via nine simply because we cease previous to attending to the final quantity within the variety.

Grid(row=1, column=2, rowspan=2) mainloop() # commence the appliance We incorporated a border and “sunken” reduction to the 2 labels (just like we did formerly for the body) in order that lets see their outlines. simply because we gave huge padx and pady values to the 1st label, it sounds as if with plenty of more space round it, based in the course of the 1st grid phone. the second one label appears to be like within the moment row and primary column, correct beneath the 1st label, yet this time we unique “sticky=E” to claim that the label may still persist with the east part of the grid mobilephone if there's additional horizontal area.

If a substring appears to be like greater than as soon as in our string, find() will simply go back the 1st visual appeal, ranging from the start of the string. for example, test: >>> "I placed a string on your string". find("string") eight >>> do not forget that we nonetheless cannot combine item varieties; find() will simply settle for a string as its enter. If we have been trying to find an integer inside of in a string, we'd nonetheless need to placed that integer worth in a string of its personal: >>> "My quantity is 555-555-5555". find("5") thirteen >>> the same string procedure is replace(), that allows you to change all occurrences of 1 substring with a special string.

Download PDF sample

Rated 4.97 of 5 – based on 35 votes
This entry was posted in Python.