Python Online Books

How to Make Mistakes in Python | O’Reilly | PDF
Even the best programmers make mistakes. In this O’Reilly online book, Mike Pirnat dissects some of his most memorable mistakes. How an incautiously prepared environment has hampered me. The trivial mistakes that waste a disproportionate amount of my energy. Poor stylistic decisions that impede readability. Assembling code in ways that make change more difficult. Assuming Logging Is Unnecessary.

Functional Programming in Python | O’Reilly | PDF
In this online book, David Mertz, a director of Python Software Foundation, examines the functional aspects of the python. Functions are first-class (objects). Recursion is used as a primary control structure. Pure functional languages eschew side effects. Functional programming worries about what is to be computed rather than how it is to be computed.

Think Python | Green Tea Press | PDF
In this online book, Allen B. Downey, covering most of the language features include: Values and types. Variables. Function calls. Math functions. Encapsulation. Refactoring. Interface design. Debugging OOP. Boolean expressions. Boolean functions. Infinite recursion. Return values. Multiple assignments. Traversal with a for-loop. Reading word lists. Dictionaries and lists and tuples. Data structures. Catching exceptions. Databases. Pipes. Inheritance. GUI.

Intermediate Python – Python Tips | PDF
In this online book, Muhammad Yasoob, covering *args and **kwargs. Debugging. Generators. set Data Structure. Ternary Operators. Map, Filter and Reduce. Decorators. Global & Return. Mutation. Virtual Environment. __slots__ Magic. Collections. Enumerate. Object introspection. Exceptions. Comprehensions. Python C extensions. Lambdas. Classes. Function caching. One-Liners. Targeting Python 2+3.

How to Think Like a Computer Scientist: Interactive Edition
The Way of the Program. Algorithms. The Python Programming Language. Executing Python in this Book. What is Debugging? Syntax errors. Runtime Errors. Semantic Errors. Formal and Natural Languages. Variables, Expressions, and Statements. How to be a Successful Programmer. How to Avoid Debugging. Modules and Getting Help. Unit Testing. Using the Main Function. Algorithms Revisited. The Accumulator Pattern with Strings. Working with Data Files. Exception Handling Flow-of-control. Web Applications. GUI and Event-Driven Programming. OOP.

Dive into Python 3 | PDF
In this online book, Mark Pilgrim, covering what’s new in Python 3, include: Installing on Microsoft Windows, Mac and Linux. Functions. Objects. Exceptions. Numbers. Booleans. Trigonometry. Lists. Sets. Tuples. Working with Files and Directory. Dictionary. Strings. Formatting. Regular Expressions. Closures & Generators. Classes & Iterators. Unit Testing. Refactoring. Formatting. Regular Expressions. Closures & Generators. Classes & Iterators. Unit Testing. Refactoring. Binary Files. XML. Serializing Objects. HTTP. Python Libraries.

Problem Solving with Algorithms and Data Structures using Python
In this online book, Brad Miller and David Ranum, covering the ideas of computer science, programming, and problem-solving. Understand abstraction and the role it plays in the problem-solving process. Understand and implement the notion of an abstract data type. Review the Python programming language. Data Structures. Recursion. Sorting and Searching. Trees and Tree Algorithms. Graphs and Graph Algorithms.

Programming Computer Vision with Python | Work with Images
In this online book, Jan Erik Solem, covering Basic Image Handling and Processing. Local Image Descriptors. Image to Image Mappings. Camera Models and Augmented Reality. Multiple View Geometry. Clustering Images. Searching Images. Classifying Image Content. Image Segmentation. OpenCV. Image Datasets. Computing with Cameras and 3D Structure.

A Programmer’s Guide to Data Mining
The Ancient Art of the Numerati by Ron Zacharski. One goal for this book is to pull back the complexity and show some of the rudimentary methods involved. Granted there are super-smart people at Google, the National Security Agency and elsewhere developing amazingly complex algorithms, but for the most part, data mining relies on easy-to-understand principles. Before you start the book you might think data mining is pretty amazing stuff. By the end of the book, I hope you will be able to say nothing special.

Supporting Python 3
Online book by Lennart Regebro and covering: Preparing for Python 3. Common migration problems. Improving your code with modern idioms. Migrating C extensions.