Beginner 9 lessons · free
Python tutorial Logic, data and automation.
Python — readable programming for everyone. Every lesson has a runnable example you can edit, key points, a practice task, a quiz and interview questions.
Start learning Python
Not started
Lessons
What you'll learn
- 01Python introductionWhat Python is used for, running code and the print() function.
- 02Variables & data typesCreating variables, int, float, str, bool and converting between types.
- 03Stringsf-strings, common string methods, indexing and slicing.
- 04Conditionsif, elif, else, comparison operators and and / or / not.
- 05Loopsfor loops with range(), looping over lists, while, break and continue.
- 06Lists, tuples, sets & dictsPython's four everyday collections and list comprehensions.
- 07Functionsdef, parameters, default values, return and keyword arguments.
- 08Errors & exceptionsReading tracebacks and handling problems with try / except / finally.
- 09Modules & the standard libraryimport, from … import, and useful built-in modules: math, random, datetime, json.