temp_for_town.append(town7) temp_for_town.append(town8) temp_for_town.append(town9) temp_for_town.append(town10) temp_for_town.append(town11) temp_for_town.append(town12) temp_for_town.append(town13) temp_for_town.append(town14) # generating buses for the company temp_for_bus = [] for i in range(10, 23): bus = Bus(random.randint(40, 60), None, None, i) randomCheck = random.randint(0, 2) if randomCheck is 0: bus.status = "atStart" elif randomCheck is 1: bus.status = "inRoute" elif randomCheck is 2: bus.status = "atEnd" temp_for_bus.append(bus) for bus in temp_for_bus: print("Bus route NO." + str(bus.route) + " Max load is " + str(bus.max_load) + " people.") # generating people to ride the buses temp_for_people = [] for i in range(1, 500): person = People("person" + str(i), random.randint(1, 100)) temp_for_people.append(person)