Python Programming – John Zelle: Chapter 3 ex. 4

Write a program to calculate the distance to a lightning strike based on the time lapsed between the flash and the sound of thunder. The speed of sound is approx. 1100 ft/sec and 1 mile is 5280 ft.

Run =
This program finds the distance to a lightning strike in miles.

Please enter the time in seconds from the lightning strike till you heard the thunder 5
The lightning strike was 1.0416666666666667 miles away