Exemplo n.º 1
0
def search_on_rating(rating):
    score = shared.return_verified_value(1, 5, rating)
    for restaurant_name in restaurants.keys():
        rest_details = restaurants[restaurant_name]
        if int(rest_details["fave"]) >= int(score):
            print(restaurant_name + " is a " + rest_details["fave"] + "/5 rated place " + \
              str(rest_details["dist"]) + " minutes from here")
Exemplo n.º 2
0
def search_on_rating(rating):
    score = shared.return_verified_value(1, 5, rating)
    for restaurant_name in restaurants.keys():
        rest_details = restaurants[restaurant_name]
        if int(rest_details["fave"]) >= int(score):
            print(restaurant_name + " is a " + rest_details["fave"] + "/5 rated place " +
                  str(rest_details["dist"]) + " minutes from here")
Exemplo n.º 3
0
def search_on_rating(rating):
    score = shared.return_verified_value(1, 5, rating)
    for restaurant_name in restaurants.keys():
        if restaurants[restaurant_name].fave >= score:
            print restaurant_name + " is a " + str(restaurants[restaurant_name].fave) + "/5 rated place " + \
                  str(restaurants[restaurant_name].dist) + " minutes from here"
Exemplo n.º 4
0
def search_on_rating(rating):
    score = shared.return_verified_value(1, 5, rating)
    for restaurant_name in restaurants.keys():
        if restaurants[restaurant_name].fave >= score:
            print(restaurant_name + " is a " + str(restaurants[restaurant_name].fave) + "/5 rated place " + \
                  str(restaurants[restaurant_name].dist) + " minutes from here")