Skip to content
MathsGenie logo
Open app

Course home

  1. IGCSE
  2. Computer Science Edexcel
  3. Question bank

Develop code

EasyMediumHard
123456789101112131415161718192021222324252627
Question 22

A programmer is writing a program in Python to determine a runner's performance level. The program should input a runner's finishing time in minutes. If the time is less than 45 minutes, it should output "Gold standard". Otherwise, it should output "Silver standard".

The current attempt contains three errors:

race_time = input("Enter your race time in minutes: ")
if race_time < 45
    print("Gold standard")
else:
  print("Silver standard"

Amend the program by writing the fully corrected code.

[3]

Develop code Questions

  1. IGCSE
  2. /Computer Science
  3. /Develop code