# Passengers per unit time

```# Idea: Create long queues of cars and wagons to occupy distances of 1km each and estimate the max number of passengers that would fit there. Calculate and compare how many passengers can be transported per unit time for car and rail given car and wagon parameters. kilometers = 1 km_in_m = 1000 km_h_to_m_s = 1000 / 60**2 avg_car_length_m = 4.6 avg_car_speed_km_h = 55 avg_car_seats = 4 traffic_lanes = 2 wagon_length_m = 24.5 wagon_seats = 10 * 8 avg_wagon_speed_km_h = 47 total_m = kilometers * km_in_m avg_car_speed_m_s = avg_car_speed_km_h * km_h_to_m_s avg_wagon_speed_m_s = avg_wagon_speed_km_h * km_h_to_m_s car_passengers_per_unit_time = ((total_m / avg_car_length_m) * avg_car_seats * traffic_lanes) / (total_m / avg_car_speed_m_s) rail_passengers_per_unit_time = ((total_m / wagon_length_m) * wagon_seats) / (total_m / avg_wagon_speed_m_s) print('Car passengers per unit time, two lanes: %d' % (round(car_passengers_per_unit_time))) print('Rail passengers per unit time: %d' % (round(rail_passengers_per_unit_time))) #Car passengers per unit time, two lanes: 27 #Rail passengers per unit time: 43```