Skip to content

Course home

Develop code

Develop code

EasyMediumHard
123456789101112131415161718192021222324
Question 22

An analyst is reviewing the following Python script written to calculate a runner's average speed in km/h:

distance_km = 10.0
time_hours = 0.75
# Calculate speed using s = d / t
average_speed = distance_km / time_hours
# Display result rounded to 2 decimal places
print(round(average_speed, 2))

Give the text of one comment used in this script.

[1]
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