Programming Books

47 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 – Learn Python, Break Python and more books
Page 7 – Modeling Creativity: Case Studies in Python and more books
Page 8 – Python in Hydrology and more books
Page 9 – Tiny Python 3.6 Notebook and more books

All books in this series:

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

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

Inline Feedbacks
View all comments