Practice
Quizzes and exercises
Reading is not enough. Check your understanding with quizzes, then write code in exercises that tell you straight away whether your answer is right.
Course quizzes
More quizzes appear here as each course is completed.
Lesson exercises
Every lesson ends with a coding exercise and a knowledge check. Jump straight to one:
- What Is Python?Python for Beginners
- Your First Python ProgramPython for Beginners
- VariablesPython for Beginners
- Data TypesPython for Beginners
- Numbers and MathPython for Beginners
- StringsPython for Beginners
- Getting User InputPython for Beginners
- Type ConversionPython for Beginners
- Booleans and ComparisonsPython for Beginners
- If, Elif and ElsePython for Beginners
- Logical OperatorsPython for Beginners
- For LoopsPython for Beginners
- The range FunctionPython for Beginners
- While LoopsPython for Beginners
- Break and ContinuePython for Beginners
- ListsPython for Beginners
- List MethodsPython for Beginners
- TuplesPython for Beginners
- SetsPython for Beginners
- DictionariesPython for Beginners
- Defining FunctionsPython for Beginners
- Parameters and ArgumentsPython for Beginners
- Return ValuesPython for Beginners
- Variable ScopePython for Beginners
- Reading and Writing FilesPython for Beginners
- Handling ErrorsPython for Beginners
- Modules and ImportsPython for Beginners
- Project: Number Guessing GamePython for Beginners
- Project: Simple CalculatorPython for Beginners
- Where to Go NextPython for Beginners
- List ComprehensionsPython Intermediate
- Dictionary and Set ComprehensionsPython Intermediate
- Unpacking and Star SyntaxPython Intermediate
- Slicing in DepthPython Intermediate
- Default and Keyword ArgumentsPython Intermediate
- Args and KwargsPython Intermediate
- Lambda FunctionsPython Intermediate
- Map, Filter and SortedPython Intermediate
- String Formatting With f-StringsPython Intermediate
- Working With JSONPython Intermediate
- Working With CSV FilesPython Intermediate
- Dates and TimesPython Intermediate
- Virtual EnvironmentsPython Intermediate
- Installing Packages With pipPython Intermediate
- Project StructurePython Intermediate
- Writing Readable Code With PEP 8Python Intermediate
- Why Objects?Python Object-Oriented Programming
- Defining a ClassPython Object-Oriented Programming
- The __init__ MethodPython Object-Oriented Programming
- Instance and Class AttributesPython Object-Oriented Programming
- MethodsPython Object-Oriented Programming
- Class Methods and Static MethodsPython Object-Oriented Programming
- PropertiesPython Object-Oriented Programming
- Magic MethodsPython Object-Oriented Programming
- InheritancePython Object-Oriented Programming
- Overriding and super()Python Object-Oriented Programming
- PolymorphismPython Object-Oriented Programming
- Composition vs InheritancePython Object-Oriented Programming
- EncapsulationPython Object-Oriented Programming
- Abstract Base ClassesPython Object-Oriented Programming
- Project: Build a Small Class LibraryPython Object-Oriented Programming
- What Is a Database?SQL for Beginners
- SELECT and FROMSQL for Beginners
- Filtering With WHERESQL for Beginners
- Sorting With ORDER BYSQL for Beginners
- LIMIT and DISTINCTSQL for Beginners
- COUNT, SUM and AVGSQL for Beginners
- GROUP BYSQL for Beginners
- HAVINGSQL for Beginners
- Working With NULLSQL for Beginners
- Primary and Foreign KeysSQL for Beginners
- INNER JOINSQL for Beginners
- LEFT JOINSQL for Beginners
- Joining Many TablesSQL for Beginners
- INSERTSQL for Beginners
- UPDATE and DELETESQL for Beginners
- CREATE TABLESQL for Beginners
- Project: Analyse a Store DatabaseSQL for Beginners
- What Is an API?APIs and HTTP Fundamentals
- HTTP Requests and ResponsesAPIs and HTTP Fundamentals
- Methods: GET, POST, PUT, DELETEAPIs and HTTP Fundamentals
- Status CodesAPIs and HTTP Fundamentals
- JSONAPIs and HTTP Fundamentals
- HeadersAPIs and HTTP Fundamentals
- Query Parameters and BodiesAPIs and HTTP Fundamentals
- API Keys and AuthenticationAPIs and HTTP Fundamentals
- The requests LibraryAPIs and HTTP Fundamentals
- Handling Errors and TimeoutsAPIs and HTTP Fundamentals
- Rate Limits and RetriesAPIs and HTTP Fundamentals
- Project: Call a Public APIAPIs and HTTP Fundamentals
- Why AI Needs MathsMathematics Foundations
- Numbers and OperationsMathematics Foundations
- Variables and EquationsMathematics Foundations
- Exponents and LogarithmsMathematics Foundations
- What Is a Function?Mathematics Foundations
- Plotting FunctionsMathematics Foundations
- Linear FunctionsMathematics Foundations
- Non-Linear FunctionsMathematics Foundations
- Summation NotationMathematics Foundations
- Greek Letters You Will MeetMathematics Foundations
- Sets and IntervalsMathematics Foundations
- Maths in PythonMathematics Foundations