Skip to content
MathsGenie logo
Open app

Course home

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

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]

Develop code Questions

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