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. /Procedures, Functions and Strings in Pseudocode
Chapter 8 · Part 2 of 3Programming in Pseudocode and Python
← Previous part: Variables, Selection and Loops in PseudocodeNext part: Arrays and Files in Pseudocode →
High School (9–10)Also Python ProgrammingAlgorithms, Programming and Logic › ProgrammingFree course

Procedures, Functions and Strings in Pseudocode

A long program is easier to write, test and change when it is cut into named parts.

  • You define procedures and functions with parameters, use the routines every language gives you, such as MOD, DIV, ROUND and RANDOM, and cut and change strings.
  • Then you put it all together in a program another person can read, the way the long scenario question of the exam asks.
  • It covers the rest of unit 8.1 of Cambridge IGCSE Computer Science.

3 lessons, about 1 h 15 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 15 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 25 min

      Procedures, functions and parameters

      A long program is easier to write and to test when it is cut into named parts. This lesson defines and calls procedures and functions in Cambridge pseudocode, passes values to them as parameters, and explains local and global variables.

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

      Library routines and string handling

      Every language comes with ready-made routines. This lesson uses the library routines of the syllabus, MOD, DIV, ROUND and RANDOM, and the four string routines LENGTH, SUBSTRING, UCASE and LCASE, in Cambridge pseudocode and in Python.

      1 simulation1 practice question1 Python program4 problems1 Python lab
      Read the lesson
    3. 3
      Lesson 3about 25 min

      Maintainable programs and the long scenario question

      A program is read far more often than it is written. This lesson shows how to make pseudocode maintainable, with meaningful identifiers, comments, constants and subroutines, and how to plan and write the long scenario answer at the end of Paper 2.

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

    Test Your Learning

    Procedures, Functions and Strings: Timed Test
    IGCSE format20 questions · 25 min
    Not started

    Your teacher

    StemPy LabStemPy Lab

    1 follower

    Loading…

    ← All Courses
    ← Variables, Selection and Loops in PseudocodeArrays and Files in Pseudocode →
    More onAlgorithms, Programming and Logic › Programming

    Discussion (0)

    Log in to join the discussion.

    Loading…