In 1958 the nuclear-powered submarine Nautilus took 6 days and 12 hours to travel submerged 5068 km across the Atlantic from Portland, England, to New York City.
What was the average speed (in km/h) for this trip?
Distance $s = 5068 km$
Time $t = 6 days and 12 hours$
Average speed $v = \frac{s}{t}$ km/h
Distance = 5068 # in km
Time_h = 6 * 24 + 12
Speed_km_h = Distance / Time_h # in km/h
# limit to 2 significant figures as distance is given in 2 significants too
print(f'The average speed for this passage is {Speed_km_h:.1f} km/h')