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.
Diese Übung ist Teil des Kurses
<Kurs>Building Chatbots in Python</Kurs>Übungsanweisungen
- Create the
paramsdictionary with the column names (keys)"area"and"price", with corresponding values"south"and"lo". - Use the
find_hotels()function along with yourparamsdictionary to find all inexpensive hotels in the South.
Interaktive praktische Übung
Versuche dich an dieser Übung, indem du diesen Beispielcode vervollständigst.
# Create the dictionary of column names and values
params = ____
# Find the hotels that match the parameters
print(____)