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

# Worksheet: Selection Structures - Python - Answer Key # `if` Statements # 1. number = int(input("Enter an integer: ")) if number > 0: print("Positive") # 2. number = int(input("Enter an integer: ")) if number % 2 == 0: print("Even") # 3. char = input("Enter a character: ") if char in 'aeiouAEIOU': print("Vowel") # 4. string = input("Enter a string: ") if not string: # Checks if the string is empty print("Empty") #...

Help