Python · Topic 20 of 20

Graduation exam preparation

Practice tasks before the informatics graduation exam: strings, lists, the while loop, mixed tasks, tkinter graphics and exceptions.

  • 6 lessons
  • 63 exercises
  • ~720 min

You should know first

This topic builds on:

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

Lessons

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

  1. 1

    Lesson 1High school~150 min16 exercisesContinue here

    Strings

    Tasks with text and first complete programs: a digit sum, a cipher, palindromes, a birth number, BMI and a quadratic equation.

    0/14 exercises
  2. 2

    Lesson 2High school~150 min15 exercises

    Lists

    Lists of numbers and names: generating random values, sorting, filtering, finding the maximum and reading until an end marker.

    0/13 exercises
  3. 3

    Lesson 3High school~90 min9 exercises

    The while loop

    A loop that runs while a condition holds: counting down, skipping numbers, reading repeatedly until an end value, and handling bad input.

    0/7 exercises
  4. 4

    Lesson 4High school~120 min9 exercises

    Mixed tasks

    Tasks where loops, lists, functions and chance meet: a lottery, primes, perfect numbers, test scores and train passengers.

    0/7 exercises
  5. 5

    Lesson 5High school~150 min8 exercises

    Graphics with tkinter

    Drawing on a canvas, mouse clicks, buttons, text fields and timer animations. The programs run in a tkinter simulation right in the browser, so you see the result immediately.

    0/5 exercises
  6. 6

    Lesson 6High school~60 min6 exercises

    Exceptions (try – except)

    A program that does not crash on bad input: asking again for a number, division by zero and several `except` branches.

    0/4 exercises

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.

Graduation exam preparation · Python | Mente