
G9 2.1 Group Activity
Quiz by fayrouz
Tag the questions with any skills you have. Your dashboard will track each student's mastery of each skill.
Complete the Python code by filling in the missing parts. (Choose from: <, >, >=, <=)
temperature = 30
if temperature __ 25:
print("It is hot!")
else:
print("It is not too hot.")
(Fill in the missing number for passing)
score = int(input("Enter your score: "))
if score >= __:
print("You passed!")
else:
print("You failed.")
Predict the Output
Look at the Python code below and write what it will print.
num = 7
if num % 2 == 0:
print("Even number")
else:
print("Odd number")
Predict the Output
Look at the Python code below and write what it will print.
x = 15
if x < 10:
print("Small number")
elif x == 15:
print("Exact match")
else:
print("Big number")
Debug the Code
There are mistakes in the following code. Fix them!

Write Your Own Code
Write a Python program for the following scenarios:
*Even or Odd Checker
Ask the user for a number.
Print "Even" if the number is divisible by 2.
Otherwise, print "Odd".
Take a student's score as input.
Print the grade using the following rules:
90 and above → "A"
80 to 89 → "B"
70 to 79 → "C"
60 to 69 → "D"
Below 60 → "F"