Skip to content

Course home

Develop code

Develop code

EasyMediumHard
1234567891011121314151617181920212223242526
Question 21

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]
Markscheme

Develop code Questions

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

62 exam-style questions on Edexcel IGCSE Computer Science Develop code. Each one has a worked solution and a mark scheme showing where the marks go.

Question bank