๐ Python
Learn to program from zero. Run every example here in your browser, with nothing to install.
- 1. Getting started with Python
Your first program, comments, and how Python uses indentation. - 2. Variables and data types
Numbers, strings, booleans, and converting between them. - 3. Strings
Slicing, useful methods and f-strings. - 4. Conditions
if, elif, else, and combining tests. - 5. Loops
Repeat work with for and while, and control it with break and continue. - 6. Lists and tuples
Store many values, change them, and build lists in one line. - 7. Dictionaries and sets
Look values up by key, and keep only unique items. - 8. Functions
Reuse code with parameters, defaults and return values. - 9. Errors and files
Handle problems without crashing, and read and write files safely. - 10. Classes and objects
Bundle data with the code that uses it. - 11. Python quick reference
Common built-ins and methods on one page.
Finished? Go deeper in the Python learning path and earn a free certificate.