Python · Topic 5 of 20

Conditions

  • 2 lessons
  • 10 exercises
  • ~90 min
  • Mastery test

You should know first

This topic builds on:

In the recommended order, “Operators” comes before this topic. Operators

Lessons

Work through them in order – each builds on the one before.

  1. 1

    Lesson 1~42 min6 exercisesContinue here

    Theory and practice

    if, elif and else - which branch runs and why.

    0/6 exercises
  2. 2

    Lesson 2~48 min4 exercises

    Programming challenges

    Decisions in a program: a grade, a calculator, sorting three numbers and a parking fee.

    0/3 exercises
  3. The goal of this topic

    Once the lessons are behind you, prove you really know the topic. Three levels – easy, hard and expert.

    Mastery test

    Conditions

    Questions about programs from the topic Conditions: what they print, what they return and why. You type the answer - no options to pick from.

    • 20 questions
    • 100% required
    • Increasing difficulty

    Mastery

    Three levels. Only 100% unlocks each one.

    0 of 3 levels mastered

    • Easy

      Basic understanding

      20 questions · 100% to master

      Best score
      -
      Attempts
      0
    • HardLocked

      Advanced understanding

      20 questions · 100% to master

      Best score
      -
      Attempts
      0

      Score 100% on Easy Mastery to unlock this level.

    • ExpertLocked

      Deep understanding

      20 questions · 100% to master

      Best score
      -
      Attempts
      0

      Score 100% on Hard Mastery to unlock this level.

What you will learn in this topic

The concepts of this topic. Each is practised by the tasks that need it - in other topics and in exam preparation too.

Conditions · Python | Mente