Home of real teaching & learning
  • Full support for teachers
  • Focus on critical thinking
  • Engaging classroom activities
  • Integrated student eBook
  • Assessed tasks / qBank
  • Practice exam questions

The InThinking Guarantee: Our sites are written by expert practitioners and not by AI

See our AI policy

Disclaimer: InThinking subject sites are neither endorsed by nor connected with the International Baccalaureate Organisation.

Don't miss out, find out!

B 2.2.3 Stacks Python

This section explores the stack data structure, which operates on the LIFO principle (like a stack of plates!). We'll cover key operations (push, pop, peek, isEmpty), their efficiency, and how to choose the right stack implementation (array-based or linked list-based) for your needs. Last updated 08/11/2025 Start with a real-world analogy (stack of plates, books, etc.) to illustrate LIFO.Define stacks, LIFO, and...

Help