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!

B2.3 Broken Code challenges - Python

B2.3 Broken Code challenges - PythonB2.3.1: Sequence & Instruction Order# Topic B2.3.1: Sequence & Instruction Order # CHALLENGE: We are trying to swap the contents of two variables. # We want 'red_bucket' to hold "Water" and 'blue_bucket' to hold "Paint". # But when we run this, both buckets end up with "Water"! # Why did we lose the "Paint"? Fix the logic. red_bucket = "Paint" blue_bucket = "Water" print("Before...

Help