Ejemplo n.º 1
0
def load_data():
    with open('CARS.p', 'rb') as f:
        cars = pickle.load(f)
        main.auto_key = cars
        cars_sorted = OrderedDict(sorted(cars.items()))
        for key, value in cars_sorted.items():
            print(key + ':' + value)
    db.entry_point()
Ejemplo n.º 2
0
def repeat():
    type_repeat = input('Do you wanna add some more? Y or N \n')
    if type_repeat in ['y', 'Y', 'YES', 'yes']:
        db.add_data()
    else:
        db.entry_point()