sılıka

Python lab

Write, run, step through and trace real Python: memory, trace tables, searching and sorting, classes and a turtle. 26 virtual experiments for grades 9–12, in English and Mongolian, done before the real practical.

Experiments in this lab · 26

Programming

  • Hello, Ulaanbaatar: input, output and variables Grades 9–10
  • Numbers and data types: a ₮ price calculator Grades 9–10
  • Decisions: if, elif, else at −30 °C Grades 9–10
  • Loops: for and while Grades 9–10
  • Loops that draw: an ulzii pattern Grades 9–10
  • Bug hunt: syntax, runtime and logic errors Grades 9–10
  • Strings: names, slices and len Grades 9–10
  • Functions: one rule, written once Grades 9–10
  • Variables, data types and scope with trace tables Grades 11–12
  • File processing: read, write, append Grades 11–12
  • Substrings: slices, bounds and immutability Grades 11–12
  • Modularisation and the call stack Grades 11–12
  • Exception handling: try, except, finally Grades 11–12
  • Paper mode: write code without running it Grades 11–12

Data structures and algorithms

  • Lists: Naadam results Grades 9–10
  • Linear and binary search: counting comparisons Grades 11–12
  • Bubble and selection sort: measuring Big O Grades 11–12
  • Recursion and the call stack (HL) Grades 11–12
  • Static and dynamic structures, and 2D lists Grades 11–12
  • Stacks (LIFO) and queues (FIFO) Grades 11–12

Computational thinking

  • Flowcharts and code Grades 9–10
  • Trace it: predict before you run Grades 9–10
  • From specification to flowchart to code Grades 11–12
  • A method for debugging: halve, inspect, re-test Grades 11–12

Objects and classes

  • Classes, objects and encapsulation Grades 11–12
  • Inheritance and polymorphism (HL) Grades 11–12

Mapped to these curricula

  • International Baccalaureate

Inside every experiment

Learn, Explore, Investigate, Check and Lab-ready, the same in every lab.

Other labs

Try an experiment with your class