""" John Rachlin distance [mi] = speed [mi/hr] X time [hr] time [hr] = distance [mi] / speed [mi/hr] Boston to Arizona: 2637 miles John drove: 90 miles per hour """ # We'll talk about "main" next week. # It basically identifies the starting point for our code. # This is especially useful when the program contains many lines of code def main(): # inputs distance = float(input("Enter distance [mi]: ")) speed = float(input("Speed [mi/hour]: ")) # compute travel time (hours) time = distance / speed print("Travel time: ", round(time, 2), "hours") # convert to days time_days = time / 24 print("Travel time: ", round(time_days, 2), "days") main() # Call the main function - start the code running!