Python | Objective Assessment | Actual
Questions with Verified Answers | New
2025/2026 Update | 100% Correct.
Save
Terms in this set (15)
, Create a solution that travels = {
accepts three integer "A": int(input()),
inputs representing the "B": int(input()),
number of times an "C": int(input())
employee travels to a job }
site. Output the total miles_per_employee = {"A": 15.62, "B":41.85, "C": 32.67}
distance traveled to two total_miles_traveled = sum(travels[employee] *
decimal places given the miles_per_employee[employee] for employee in
following miles per travels)
employee commute to print(f"Distance: {total_miles_traveled:.2f} miles")
the job site. Output the
total distance traveled to
two decimal places given
the following miles per
employee commute to
the job site:
Employee A: 15.62 miles
Employee B: 41.85 miles
Employee C: 32.67 miles
The solution output
should be in the format
Distance:
total_miles_traveled miles