Beginner · 4h 50m · lessons
Python Basics
Write your first real programs in the friendliest language there is.
What you'll learn
- ✦Run Python two ways: line-by-line in the
REPLand as saved.pyscripts - ✦Store data in variables and tell apart the core types:
int,float,str,bool - ✦Build and format text cleanly with f-strings and the handy string methods
- ✦Collect data with lists, tuples, dictionaries, and sets — and pick the right one
- ✦Make decisions with
if/elif/elseand repeat work withforandwhileloops - ✦Write reusable functions with parameters, return values, and default arguments
- ✦Pull in extra power with
importand Python's standard library - ✦Read and write files, and handle errors gracefully with
try/except - ✦Write Pythonic code with comprehensions, slicing,
enumerate, andzip - ✦Install packages with
pip, write a simple class, and work with JSON
Syllabus
Module 1
Getting started Free
Module 2
Data & types Locked
Module 3
Collections & flow Locked
Module 4
Functions & files Locked
Module 5
Pythonic data Locked
Module 6
Real-world Python Locked