Average air-speed of an unladen African swallow

Question P4.1.1

Write a program to read in the data from the file swallow-speeds.txt and use it to calculate the average air-speed velocity of an (unladen) African swallow. Use exceptions to handle the processing of lines which do not contain valid data points.


Solution

To access solutions, please obtain an access code from Cambridge University Press at the Lecturer Resources page for my book (registration required) and then sign up to scipython.com providing this code.