### Instruction: A train 240 m long passes a pole in 24 seconds. How long will it take to pass a platform 650 m long?
Answer Choices: (A) 80 sec (B) 89 sec (C) 99 sec (D) 86 sec (E) 85 sec Please write a program to solve it.### Response: # The speed of the train can be calculated by the distance it travels divided by the time it takes. In this case, it's 240m/24s = 10m/s.
speed = 240 / 24
# The total distance the train needs to cover to pass the platform is the length of the train plus the length of the platform, which is 240m + 650m = 890m.
total_distance = 240 + 650
# The time it takes to pass the platform can be calculated by the total distance divided by the speed of the train. In this case, it's 890m/10m/s = 89s.
time = total_distance / speed
print(time)