I need a python coder quckly

Job ID: 36188752

Budget: $30 – $250 USD

Need help to finish a primitive train simulation. There is a partially working code. The simulation is as follows: two files are given, the program should count them, in the first file the name of the station and the probability of a train delay at this station. The second file contains information about the connection of stations in one line and the direction of movement. For each step of the simulation, the train must move one step forward from one station to the next on the line, after reaching the final station, it changes direction to the opposite and continues moving. At each step of the simulation, you need to be able to track each train. The number of trains is entered by the user, then they are randomly distributed among stations and have a random direction of movement
Related categories: C Programming Python Software Architecture