So I\'ve been tasked with essentially reading in a file (notepad file) that has a bunch of train stops and the time it takes to get from one stop to another. For example it
A dictionary is suitable for doing this.
It makes it easy for you to access the time (= value) for a given bus stop (= key).
time_per_stop = {"Stop A": 15, "Stop B": 12, "Stop C": 9}
Of course, in case you have a finite and small amount of bus stops, you could also just keep a list or tuple of stop times.
time_per_stop_list = [15, 12, 9]