Aan de slagGa gratis aan de slag

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.

Deze oefening maakt deel uit van de cursus

Building Chatbots in Python

Cursus bekijken

Oefeninstructies

  • 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.

Praktische interactieve oefening

Probeer deze oefening eens door deze voorbeeldcode in te vullen.

# Create the dictionary of column names and values
params = ____

# Find the hotels that match the parameters
print(____)
Code bewerken en uitvoeren