Using your custom function to find hotels

Using your custom function to find hotels

Here, you'll see your find_hotels() function in action! Recall that it accepts a single argument, params, which is a dictionary of column names and values.

=====================================================

Instructions

  • Create the params dictionary with the column names (keys) "area" and "price", with corresponding values "south" and "lo".
  • Use the find_hotels() function along with your params dictionary to find all inexpensive hotels in the South.

=====================================================

# Create the params dictionary
params = {'area': 'south', 'price': 'lo'}

# Find the hotels that match the parameters
inexpensive_hotels = find_hotels(params)

# Print the results
print(inexpensive_hotels)
Last modified: Monday, 8 May 2023, 11:31 AM