Coding Python
HomeLearn Python Programming

Learn Python Programming: Free Tutorials for Beginners

Learn Python from scratch with a free, ordered course: 14 tutorials from your first program to classes, files and the standard library. Every example runs in the Coding Python Android app.

This is a complete beginner course in Python 3, written to be read in order. Each lesson takes 8–15 minutes, every example shows its real output, and every example runs unchanged in the free Coding Python app so you can learn entirely on an Android phone. No prior programming experience is assumed.

If you prefer a schedule, the 30-day roadmap maps these lessons onto daily practice. Finish with the 20 practice exercises, then take the quiz.

1
What is Python? A Beginner's Introduction to Python ProgrammingLearn what Python is, what it is used for, why it is the best first programming language, and how to run your first Python program on a computer or an Android phone.8 min read
2
Python Variables and Data Types Explained (with Examples)Understand Python variables, naming rules, the core data types (int, float, str, bool, None), type() and type conversion with runnable examples for beginners.10 min read
3
Python Strings: Slicing, Methods and f-StringsMaster Python strings: indexing and slicing, the most useful string methods, f-string formatting, escape characters and common beginner mistakes, all with runnable examples.11 min read
4
Python Numbers and Operators: Arithmetic, Comparison and LogicLearn Python's arithmetic, comparison, logical, assignment and membership operators, integer vs float division, operator precedence and the math module with runnable examples.9 min read
5
Python if, elif and else: Conditional Statements ExplainedLearn how Python makes decisions with if, elif and else, how indentation defines blocks, nested conditions, the ternary expression and the match statement, with beginner-friendly examples.9 min read
6
Python Loops: for, while, break, continue and range()Learn Python for loops and while loops, range(), enumerate(), zip(), break, continue, the loop else clause and nested loops. Runnable examples and a FizzBuzz exercise for beginners.11 min read
7
Python Lists: Create, Index, Slice, Sort and ComprehendComplete beginner's guide to Python lists: creating lists, indexing and slicing, append/insert/remove/pop, sorting, copying, nested lists and list comprehensions with runnable examples.12 min read
8
Python Dictionaries and Sets: Key-Value Data Made SimpleLearn Python dictionaries (create, access, get, update, loop, nested dicts, dict comprehensions) and sets (union, intersection, difference) with clear runnable examples for beginners.11 min read
9
Python Functions: def, Arguments, Return Values and ScopeLearn to write Python functions: def, parameters and arguments, default and keyword arguments, return values, *args and **kwargs, lambda, docstrings, scope and recursion with examples.12 min read
10
Python Classes and Objects: Object-Oriented Programming BasicsLearn object-oriented programming in Python: classes, __init__, self, instance and class attributes, methods, inheritance, super(), __str__ and __repr__, properties and dataclasses.13 min read
11
Python Errors and Exceptions: try, except, finally and raiseLearn how to handle errors in Python with try/except/else/finally, catch specific exception types, raise your own exceptions, read tracebacks and fix the most common beginner errors.10 min read
12
Python File Handling: Read, Write and Append Files (with JSON and CSV)Learn how to read and write files in Python using open() and with, file modes, reading line by line, appending, pathlib, and working with JSON and CSV files. Examples run on desktop and Android.10 min read
13
Python Modules, Imports and the Standard Library You Should KnowLearn how import works in Python, how to write your own modules, and the essential standard library modules: math, random, datetime, collections, itertools, functools, re, os and sys.12 min read
14
Python Practice Exercises for Beginners (with Solutions)Twenty Python coding exercises for beginners, ordered from easy to intermediate, each with a worked solution: strings, loops, lists, dictionaries, functions, recursion and small programs.15 min read

Learn Python on your phone — for free

Coding Python packs a real Python 3 compiler, 30 example programs, 112 quiz questions and 12 self-checking challenges into one free Android app.

Get it on Google Play
Coding Python app icon