search_titlesearch_titlesearch_titlesearch_titlebooks with these exact dictionaries: {'title': 'Python Basics', 'author': 'John Doe'}, {'title': 'Advanced Python', 'author': 'Jane Smith'}, and {'title': 'Learning REST APIs', 'author': 'Alice Brown'}.Use a list of dictionaries with keys 'title' and 'author'.
search_title and set it to the string 'Python'.Set search_title exactly to 'Python'.
filtered_books that contains only the books from books where the title contains the string in search_title. Use a list comprehension with book['title'] and search_title.Use a list comprehension with if search_title in book['title'].
filtered_books to display the books matching the search parameter.Use print(filtered_books) to show the result.
What is the main purpose of a search parameter in a REST API URL?
Which of the following is the correct way to add a search parameter named name with value alice to a REST API URL?
https://api.example.com/users
?name=alice. Using & or # or slashes is incorrect here.What will be the full URL to search for users with age 30 and city as NY?
Base URL: https://api.example.com/users
?age=30.&city=NY.Identify the error in this URL with search parameters:
https://api.example.com/products?category=books&price=20?sort=asc
sort=asc instead of &.You want to search a REST API for books with author as John and year greater than 2010. Which URL correctly uses search parameters to do this?
year_gt=2010, which is a common and correct way to express this filter.Pass the test and this pattern moves unknown