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.3.3 Worksheet answers Python

# Worksheet: Looping Structures - Python - Answer Key # `for` Loop # 1. for i in range(1, 11): print(i) # 2. for i in range(2, 21, 2): print(i) # 3. sum = 0 for i in range(1, 101): sum += i print("Sum:", sum) # 4. message = "Hello, world!" for char in message: print(char) # 5. a, b = 0, 1 print(a, b, end=" ") for _ in range(2, 10): a, b = b, a + b print(b, end=" ") # 6. for i in range(1, 6): print("*" * i) # 7. for i...

Help