Beispiel #1
0
def CityInJourney():
    t = Train("Express One", 50, 100)
    c1 = City("City 1", 5, 10, 600)
    cities = [c1, City("City 2", 2, 3, 900), City("City 3", 0, 0, 300)]
    j = Journey(t, cities, 200)
    r = j.city_in_journey(c1)
    print(r)
    print(j.city_in_journey("City 1"))