HelpContactFor teachers and institutes
>_StemPy Lab
Mock TestsClasses

>_StemPy Lab

Learn. Solve. Code the solutions. Test yourself.

Live examsFree mock exams, timed and rankedEveryone starts together, and your score and rank come the moment it ends.See the exams →
Live examsInternational live exams are comingTell us which exam you want first. Timed practice papers are open now.See what is coming →

Learn

  • Physics
  • Chemistry
  • Mathematics
  • Biology
  • Python Programming
  • Statistics & Data Science
  • Computer Science
  • Classes
  • Groups

Practice

  • Problems
  • Quizzes
  • Mock Tests
  • Prepare for an Exam
  • Question Sets
  • Exams
  • Certificates
  • Python Labs
  • AI Practice Generator
  • Student-Created Tests

Community

  • Discussions
  • Resources
  • Notes
  • Glossary
  • Blog

Account

  • Log in
© 2026 senLearn. All rights reserved.HelpFor SchoolsAboutContactPrivacy PolicyTerms of UseRefund Policy
  1. Programming in Pseudocode and Python
  2. /Computer Science
  3. /Variables, Selection and Loops in Pseudocode
Chapter 8 · Part 1 of 3Programming in Pseudocode and Python
Next part: Procedures, Functions and Strings in Pseudocode →
High School (9–10)Also Python ProgrammingAlgorithms, Programming and Logic › ProgrammingFree course

Variables, Selection and Loops in Pseudocode

A ticket machine asks for your age, picks a price and adds up the bill.

  • Each step is a variable, a decision or a loop.
  • You write these steps in Cambridge pseudocode, next to the Python you may know already, and you trace them by hand to see what they output.
  • It covers the first part of unit 8.1 of Cambridge IGCSE Computer Science.

3 lessons, about 1 h 25 min3 simulations10 problems3 practice questionsPython in every lesson

StemPy LabCreated by StemPy Lab

Free

Every lesson is open to read. Enroll to keep your place in the course. No payment needed.

This course includes

  • 3 lessons, about 1 h 25 min
  • 3 simulations with sliders
  • 3 practice questions with new numbers each time
  • 3 Python programs to run
  • 10 problems with worked solutions
  • 2 Python labs
1 question set
  • 1 revision note
  • 1 test
  • Log in to save

    Course outline (3 lessons)

    1. 1
      Lesson 1about 30 min

      Variables, constants, data types, input and output

      In the written exam a program is answered in pseudocode, not in a real language. This lesson shows the Cambridge way of writing variables, constants, the five data types, the operators, input and output, beside the Python you may know already.

      1 simulation1 practice question1 Python program3 problems
      Read the lesson
    2. 2
      Lesson 2about 25 min

      Selection with IF and CASE

      A program chooses what to do next by testing a condition. This lesson writes that choice in Cambridge pseudocode with IF statements, nested IF statements and CASE statements, and shows the same choice in Python.

      1 simulation1 practice question1 Python program3 problems1 Python lab
      Read the lesson
    3. 3
      Lesson 3about 30 min

      Loops, totals, counts and nested statements

      A program repeats steps with a loop. This lesson writes the three loops of the syllabus in Cambridge pseudocode: the count-controlled FOR loop, the pre-condition WHILE loop and the post-condition REPEAT loop. It then uses them for totals, counts and nested statements, with a trace table.

      1 simulation1 practice question1 Python program4 problems1 Python lab1 question set1 note
      Read the lesson

    Test Your Learning

    Variables, Selection and Loops: Practice Paper
    IGCSE format15 questions · 20 min
    Not started

    Your teacher

    StemPy LabStemPy Lab

    1 follower

    Loading…

    ← All Courses
    ← PreviousProcedures, Functions and Strings in Pseudocode →
    More onAlgorithms, Programming and Logic › Programming

    Discussion (0)

    Log in to join the discussion.

    Loading…