### Instruction: A car during its journey travels 1 hour at a speed of 40 kmph, another 30 minutes at a speed of 60 kmph, and 2 hours at a speed of 60 kmph.The average speed of the car is
Answer Choices: (A) 63.07 kmph (B) 54.28 kmph (C) 62.02 kmph (D) 64.02 kmph (E) None of these Please respond by writing a program in Python.### Response: # calculate total distance and total time
total_distance = 1*40 + 0.5*60 + 2*60
total_time = 1 + 0.5 + 2
# calculate average speed
average_speed = total_distance / total_time
print(average_speed)