- Learning Python
- Beginner
- The Python Tutorial
- Real Python
- Python Basics
- Python for Beginners
- Learn Python Interactive Tutorial
- Python for You and Me
- Learn Python Step by Step
- Online Python Tutor
- Invent Your Own Computer Games with Python
- Hacking Secret Ciphers with Python
- Learn Python the Hard Way
- Crash into Python
- Dive Into Python 3
- Think Python: How to Think Like a Computer Scientist
- Python Koans
- A Byte of Python
- Learn to Program in Python with Codeacademy
- Code the blocks
- Intermediate
- Advanced
- For Engineers and Scientists
- Miscellaneous Topics
- References
- Beginner
Learning Python
Beginner
The Python Tutorial
This is the official tutorial. It covers all the basics, and offers a tour ofthe language and the standard library. Recommended for those who need aquick-start guide to the language.
The Python Tutorial
Real Python
Real Python is a repository of free and in-depth Python tutorials created by a diverse team of professional Python developers. At Real Python you can learn all things Python from the ground up. Everything from the absolute basics of Python, to web development and web scraping, to data visualization, and beyond.
Real Python
Python Basics
pythonbasics.org is an introductiory tutorial for beginners. The tutorial includes exercises. It covers the basics and there are also in-depth lessons like object oriented programming and regular expressions.
Python basics
Python for Beginners
thepythonguru.com is a tutorial focused on beginner programmers. It covers many Python conceptsin depth. It also teaches you some advanced constructs of Python like lambda expressions and regular expressions.And last it finishes off with the tutorial “How to access MySQL db using Python”
Python for Beginners
Learn Python Interactive Tutorial
Learnpython.org is an easy non-intimidating way to get introduced to Python.The website takes the same approach used on the popularTry Ruby website. It has an interactive Pythoninterpreter built into the site that allows you to go through the lessonswithout having to install Python locally.
Learn Python
Python for You and Me
If you want a more traditional book, Python For You and Me is an excellentresource for learning all aspects of the language.
Python for You and Me
Learn Python Step by Step
Techbeamers.com provides step-by-step tutorials to teach Python. Each tutorial is supplemented with logically added coding snippets and equips with a follow-up quiz on the subject learned. There is a section for Python interview questions to help job seekers. You can also read essential Python tips and learn best coding practices for writing quality code. Here, you’ll get the right platform to learn Python quickly.
Learn Python Basic to Advanced
Online Python Tutor
Online Python Tutor gives you a visual step-by-steprepresentation of how your program runs. Python Tutorhelps people overcome a fundamental barrier to learningprogramming by understanding what happens as the computerexecutes each line of a program’s source code.
Online Python Tutor
Invent Your Own Computer Games with Python
This beginner’s book is for those with no programming experience at all. Eachchapter has the source code to a small game, using these example programsto demonstrate programming concepts to give the reader an idea of whatprograms “look like”.
Invent Your Own Computer Games with Python
Hacking Secret Ciphers with Python
This book teaches Python programming and basic cryptography for absolutebeginners. The chapters provide the source code for various ciphers, as wellas programs that can break them.
Hacking Secret Ciphers with Python
Learn Python the Hard Way
This is an excellent beginner programmer’s guide to Python. It covers “helloworld” from the console to the web.
Learn Python the Hard Way
Crash into Python
Also known as Python for Programmers with 3 Hours, this guide givesexperienced developers from other languages a crash course on Python.
Crash into Python
Dive Into Python 3
Dive Into Python 3 is a good book for those ready to jump in to Python 3. It’sa good read if you are moving from Python 2 to 3 or if you already have someexperience programming in another language.
Dive Into Python 3
Think Python: How to Think Like a Computer Scientist
Think Python attempts to give an introduction to basic concepts in computerscience through the use of the Python language. The focus was to create a bookwith plenty of exercises, minimal jargon, and a section in each chapter devotedto the subject of debugging.
While exploring the various features available in the Python language theauthor weaves in various design patterns and best practices.
The book also includes several case studies which have the reader explore thetopics discussed in the book in greater detail by applying those topics toreal-world examples. Case studies include assignments in GUI programming and MarkovAnalysis.
Think Python
Python Koans
Python Koans is a port of Edgecase’s Ruby Koans. It uses a test-drivenapproach to provide an interactive tutorialteaching basic Python concepts. By fixing assertion statements that fail in atest script, this provides sequential steps to learning Python.
For those used to languages and figuring out puzzles on their own, this can bea fun, attractive option. For those new to Python and programming, having anadditional resource or reference will be helpful.
Python Koans
More information about test driven development can be found at these resources:
Test Driven Development
A Byte of Python
A free introductory book that teaches Python at the beginner level, it assumesno previous programming experience.
A Byte of Python for Python 2.xA Byte of Python for Python 3.x
Learn to Program in Python with Codeacademy
A Codeacademy course for the absolute Python beginner. This free and interactive course provides and teaches the basics (and beyond) of Python programming while testing the user’s knowledge in between progress.This course also features a built-in interpreter for receiving instant feedback on your learning.
Learn to Program in Python with Codeacademy
Code the blocks
Code the blocks provides free and interactive Python tutorials forbeginners. It combines Python programming with a 3D environment whereyou “place blocks” and construct structures. The tutorials teach youhow to use Python to create progressively more elaborate 3D structures,making the process of learning Python fun and engaging.
Code the blocks
Intermediate
Python Tricks: The Book
Discover Python’s best practices with simple examples and start writing even more beautiful + Pythonic code. Python Tricks: The Book shows you exactly how.
You’ll master intermediate and advanced-level features in Python with practical examples and a clear narrative.
Python Tricks: The Book
Effective Python
This book contains 59 specific ways to improve writing Pythonic code. At 227pages, it is a very brief overview of some of the most common adapationsprogrammers need to make to become efficient intermediate level Pythonprogrammers.
Effective Python
Advanced
Pro Python
This book is for intermediate to advanced Python programmers who are looking tounderstand how and why Python works the way it does and how they can take theircode to the next level.
Pro Python
Expert Python Programming
Expert Python Programming deals with best practices in programming Python andis focused on the more advanced crowd.
It starts with topics like decorators (with caching, proxy, and context managercase studies), method resolution order, using super() and meta-programming, andgeneral PEP 8 best practices.
It has a detailed, multi-chapter case study on writing and releasing a packageand eventually an application, including a chapter on using zc.buildout. Laterchapters detail best practices such as writing documentation, test-drivendevelopment, version control, optimization, and profiling.
Expert Python Programming
A Guide to Python’s Magic Methods
This is a collection of blog posts by Rafe Kettler which explain ‘magic methods’in Python. Magic methods are surrounded by double underscores (i.e. init)and can make classes and objects behave in different and magical ways.
A Guide to Python’s Magic Methods
Note
Rafekettler.com is currently down; you can go to their GitHub version directly. Here you can find a PDF version:A Guide to Python’s Magic Methods (repo on GitHub)
For Engineers and Scientists
A Primer on Scientific Programming with Python
A Primer on Scientific Programming with Python, written by Hans PetterLangtangen, mainly covers Python’s usage in the scientific field. In the book,examples are chosen from mathematics and the natural sciences.
A Primer on Scientific Programming with Python
Numerical Methods in Engineering with Python
Numerical Methods in Engineering with Python, written by Jaan Kiusalaas,puts the emphasis on numerical methods and how to implement them in Python.
Numerical Methods in Engineering with Python
Miscellaneous Topics
Problem Solving with Algorithms and Data Structures
Problem Solving with Algorithms and Data Structures covers a range of datastructures and algorithms. All concepts are illustrated with Python code alongwith interactive samples that can be run directly in the browser.
Problem Solving with Algorithms and Data Structures
Programming Collective Intelligence
Programming Collective Intelligence introduces a wide array of basic machinelearning and data mining methods. The exposition is not very mathematicallyformal, but rather focuses on explaining the underlying intuition and showshow to implement the algorithms in Python.
Programming Collective Intelligence
Transforming Code into Beautiful, Idiomatic Python
Transforming Code into Beautiful, Idiomatic Python is a video by Raymond Hettinger.Learn to take better advantage of Python’s best features and improve existing codethrough a series of code transformations: “When you see this, do that instead.”
Transforming Code into Beautiful, Idiomatic Python
Fullstack Python
Fullstack Python offers a complete top-to-bottom resource for web developmentusing Python.
From setting up the web server, to designing the front-end, choosing a database,optimizing/scaling, etc.
As the name suggests, it covers everything you need to build and run a completeweb app from scratch.
Fullstack Python
PythonistaCafe
PythonistaCafe is an invite-only, online community of Python and software development enthusiasts helping each other succeed and grow. Think of it as a club of mutual improvement for Pythonistas where a broad range of programming questions, career advice, and other topics are discussed every day.
PythonistaCafe
References
Python in a Nutshell
Python in a Nutshell, written by Alex Martelli, covers most cross-platformPython usage, from its syntax to built-in libraries to advanced topics suchas writing C extensions.
Python in a Nutshell
The Python Language Reference
This is Python’s reference manual. It covers the syntax and the core semanticsof the language.
The Python Language Reference
Python Essential Reference
Python Essential Reference, written by David Beazley, is the definitive referenceguide to Python. It concisely explains both the core language and the most essentialparts of the standard library. It covers Python 3 and 2.6 versions.
Python Essential Reference
Python Pocket Reference
Python Pocket Reference, written by Mark Lutz, is an easy to use reference tothe core language, with descriptions of commonly used modules and toolkits. Itcovers Python 3 and 2.6 versions.
Python Pocket Reference
Python Cookbook
Python Cookbook, written by David Beazley and Brian K. Jones, is packed withpractical recipes. This book covers the core Python language as well as taskscommon to a wide variety of application domains.
Python Cookbook
Writing Idiomatic Python
Writing Idiomatic Python, written by Jeff Knupp, contains the most common andimportant Python idioms in a format that maximizes identification andunderstanding. Each idiom is presented as a recommendation of a way to writesome commonly used piece of code, followed by an explanation of why the idiomis important. It also contains two code samples for each idiom: the “Harmful”way to write it and the “Idiomatic” way.
For Python 2.7.3+For Python 3.3+