Python for Programmers
Introduction to Python, including pitfalls and community conventions.
Other courses on Python: Python in Detail.
About This Course
You'll Learn
The core features of Python, community conventions, and pitfalls to watch out for.
There are 66 lessons containing 882 code examples. Most people finish this course in 12 hours over 16 calendar days.
Prerequisites
You should be familiar with at least one other programming language.
(It doesn't matter which one.)
You should be comfortable with variables, functions, conditionals (like if), and loops (like for).
Level 1
Basic Data Types
Significant Whitespace
Two Division Operators
Strict Dynamic Types
Raising Exceptions
Functions
Level 2
Locked
Assertions
List Basics
Augmented and Chained Assignment
List Methods
Tuples
Dictionaries
Control Structures
Level 3
Locked
Blocks and Whitespace
Truthiness
Identity and Equality
Size and Precision of Numbers
None
Raw Strings
Level 4
Locked
Nonlocal and Global Scope
Mutable List Problems
Terminating Loops
Negative Indexing
List Slicing
Strings as Collections
Level 5
Locked
Importing and the Standard Library
Docstrings
F-Strings
Chained Inequalities
Kwargs
Lambda Expressions
Ternaries
Level 6
Locked
Default Argument Values
Isinstance
Mutable Default Arguments
Building New Dictionaries
Decimals
Type
Level 7
Locked
Class Basics
Unpacking
More String Methods
Built-in Functions
Pattern Matching
StringIO
Mixing up Iterables
Level 8
Locked
Lines in Files
Handling Exceptions
Bytes
Ranges
Missing Dictionary Keys
Extended Slices
Context Managers
Level 9
Locked
Comprehensions
Any and All
Booleans as Integers
Enumerate Function
Dictionary Methods
Even More Dict Methods
Level 10
Locked
Variadic Functions
Wrapping Functions
Variadic Function Calls
Consuming Iterators
Function Decorators
Defaultdict
Naming Conventions