Free Programming Books

46 Excellent Free Books to Learn Python

6. Supporting Python 3 by Lennart Regebro

Supporting Python 3Supporting Python 3 is an expertly written in-depth book which guides the reader through the process of adding Python 3 support, from choosing a strategy to solving distribution issues.

The process of switching to Python 3 is most often called “porting”. The first two editions of this book were also called “Porting to Python 3”. However, this gave the false impression that this was a lot of work, and that Python 3 was “a different language” than Python 2. Although moving to Python 3 can be hard work, for the most time it is not, and as Python 2.5 and Python 3.2 are rapidly falling out of use, it gets even easier.

If you want to ‘port’ Python 2 code to Python 3, read this book.

The author has been using Python since 2008.

This book is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.

Read the book


7. Building Skills in Python by Steven F. Lott

Building Skills in PythonBuilding Skills in Python is a 42 chapter book which helps build Python programming skills through a series of exercises. It includes useful projects from straightforward to sophisticated that will help solidify your Python skills.

This book is a close-to-complete presentation of the Python language, updated to cover Python 2.6 and some elements of Python 3.1. It’s oriented toward learning, which involves accumulating many closely intertwined concepts. This book is primarily targeted at professional programmers.

The first three parts are organized in a way that builds up the language in layers from central concepts to more advanced features. Programming exercises are provided to encourage further exploration of each layer. The last two parts cover the extension modules and provide specifications for some complex exercises that will help solidify programming skills.

The book explores a wide range of topics including:

  • Numeric Expressions and Output.
  • Advanced Expressions.
  • Variables, Assignment and Input.
  • Truth, Comparison and Conditional Processing.
  • Loops and Iterative Processing.
  • Functions.

This book is made available under a Creative Commons Attribution-Noncommercial-No Derivative Works License.

Read the book


8. Think Complexity by Allen B. Downey

Think ComplexityThink Complexity is about data structures and algorithms, intermediate programming in Python, computational modeling and the philosophy of science.

After reading the material, you’ll use graphs, cellular automata, and agent-based models to study topics in physics, biology, and economics.

Whether you’re an intermediate-level Python programmer or a student of computational modeling, you’ll delve into examples of complex systems through a series of worked examples, exercises, case studies, and easy-to-understand explanations.

Topics covered include:

  • Graphs including random and connected graphs.
  • Analysis of algorithms – the branch of computer science that considers the performance of algorithms.
  • Small world graphs.
  • Scale-free networks: Zipf’s law, cumulative, continuous and Pareto distributions.
  • Cellular automata.
  • Game of Life.
  • Fractals.
  • Self-organized criticality.
  • Case studies.

Permission is granted to copy, distribute, transmit and adapt this work under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.

Read the book


9. Programming Computer Vision with Python by Jan Erik Solem

Programming Computer Vision with PythonProgramming Computer Vision with Python gives a hands-on introduction to the underlying theory and algorithms of computer vision (images, videos, etc).

It seeks to explain computer vision in simple terms, without becoming too embroiled in theory. You learn techniques for object recognition, 3D reconstruction, stereo imaging, augmented reality, and other computer vision applications as you follow clear examples written in Python.

There are complete code samples with accompanying explanations.

The Python language comes with many powerful modules for handling images, mathematical computing and data mining.

Topics covered include:

  • Learn techniques used in robot navigation, medical image analysis, and other computer vision applications.
  • Work with image mappings and transforms, such as texture warping and panorama creation.
  • Compute 3D reconstructions from several images of the same scene.
  • Organize images based on similarity or content, using clustering methods.
  • Build efficient image retrieval techniques to search for images based on visual content.
  • Use algorithms to classify image content and recognize objects.
  • Access the popular OpenCV library through a Python interface.

The final draft of the book is released under a Creative Commons license.

Read the book


10. Annotated Algorithms in Python by Massimo Di Pierro

Annotated Algorithms in PythonAnnotated Algorithms in Python with Applications in Physics, Biology, and Finance is compiled from lectures given by the author over a period of 10 years at the School of Computing of DePaul University.

The lectures cover multiple classes, including Analysis and Design of Algorithms, Scientific Computing, Monte Carlo Simulations, and Parallel Algorithms. These lectures teach the core knowledge required by any scientist interested in numerical algorithms and by students interested in computational finance.

The book is published under the Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License.

Read the book


Next page: Page 3 – Invent Your Own Computer Games with Python and more books

Pages in this article:
Page 1 – Think Python and more books
Page 2 – Supporting Python 3 and more books
Page 3 – Invent Your Own Computer Games with Python and more books
Page 4 – Making Games with Python & Pygame and more books
Page 5 – Hacking Secret Ciphers with Python and more books
Page 6 – How to Make Mistakes in Python and more books
Page 7 – Text Processing in Python and more books
Page 8 – The Coder’s Apprentice and more books
Page 9 – Building Skills in Object-Oriented Design and more books


All books in this series:

Free Programming Books
JavaGeneral-purpose, concurrent, class-based, object-oriented, high-level language
CGeneral-purpose, procedural, portable, high-level language
PythonGeneral-purpose, structured, powerful language
C++General-purpose, portable, free-form, multi-paradigm language
C#Combines the power and flexibility of C++ with the simplicity of Visual Basic
JavaScriptInterpreted, prototype-based, scripting language
PHPPHP has been at the helm of the web for many years
HTMLHyperText Markup Language
SQLAccess and manipulate data held in a relational database management system
RubyGeneral purpose, scripting, structured, flexible, fully object-oriented language
AssemblyAs close to writing machine code without writing in pure hexadecimal
SwiftPowerful and intuitive general-purpose programming language
GroovyPowerful, optionally typed and dynamic language
GoCompiled, statically typed programming language
PascalImperative and procedural language designed in the late 1960s
PerlHigh-level, general-purpose, interpreted, scripting, dynamic language
RDe facto standard among statisticians and data analysts
COBOLCommon Business-Oriented Language
ScalaModern, object-functional, multi-paradigm, Java-based language
FortranThe first high-level language, using the first compiler
ScratchVisual programming language designed for 8-16 year-old children
LuaDesigned as an embeddable scripting language
LogoDialect of Lisp that features interactivity, modularity, extensibility
RustIdeal for systems, embedded, and other performance critical code
LispUnique features - excellent to study programming constructs
AdaALGOL-like programming language, extended from Pascal and other languages
HaskellStandardized, general-purpose, polymorphically, statically typed language
SchemeA general-purpose, functional language descended from Lisp and Algol
PrologA general purpose, declarative, logic programming language
ForthImperative stack-based programming language
ClojureDialect of the Lisp programming language
JuliaHigh-level, high-performance language for technical computing
AwkVersatile language designed for pattern scanning and processing language
CoffeeScriptTranscompiles into JavaScript inspired by Ruby, Python and Haskell
BASICBeginner’s All-purpose Symbolic Instruction Code
ErlangGeneral-purpose, concurrent, declarative, functional language
VimLPowerful scripting language of the Vim editor
OCamlThe main implementation of the Caml language
ECMAScriptBest known as the language embedded in web browsers
BashShell and command language; popular both as a shell and a scripting language
LaTeXProfessional document preparation system and document markup language
TeXMarkup and programming language - create professional quality typeset text
ArduinoInexpensive, flexible, open source microcontroller platform
TypeScriptStrict syntactical superset of JavaScript adding optional static typing
ElixirRelatively new functional language running on the Erlang virtual machine
F#Uses functional, imperative, and object-oriented programming methods
TclDynamic language based on concepts of Lisp, C, and Unix shells
FactorDynamic stack-based programming language
EiffelObject-oriented language designed by Bertrand Meyer
AgdaDependently typed functional language based on intuitionistic Type Theory
IconWide variety of features for processing and presenting symbolic data
XMLRules for defining semantic tags describing structure ad meaning
ValaObject-oriented language, syntactically similar to C#
Standard MLGeneral-purpose functional language characterized as "Lisp with types"
DGeneral-purpose systems programming language with a C-like syntax
DartClient-optimized language for fast apps on multiple platforms
MarkdownPlain text formatting syntax designed to be easy-to-read and easy-to-write
KotlinMore modern version of Java
Objective-CObject-oriented language that adds Smalltalk-style messaging to C
PureScriptSmall strongly, statically typed language compiling to JavaScript
ClojureScriptCompiler for Clojure that targets JavaScript
VHDLHardware description language used in electronic design automation
JArray programming language based primarily on APL
LabVIEWDesigned to enable domain experts to build power systems quickly
Share this article

Share your Thoughts

This site uses Akismet to reduce spam. Learn how your comment data is processed.