Complete the code to specify the HTTP method for bulk import.
response = requests.[1]('https://api.example.com/bulk/import', json=data)
The bulk import operation usually uses the POST method to send data to the server.
Complete the code to specify the correct content type header for bulk export.
headers = {'Content-Type': '[1]'}Bulk export data is usually sent or received in JSON format, so the content type is application/json.
Fix the error in the code to correctly parse the bulk export response JSON.
data = response.[1]()To parse JSON data from a response, use the json() method.
Fill both blanks to create a dictionary comprehension that filters bulk import data for items with quantity greater than 10.
filtered_data = {item['id']: item for item in data if item[1] [2] 10}The comprehension filters items where the 'quantity' field is greater than 10.
Fill all three blanks to create a dictionary comprehension that maps uppercase item names to their prices for items with price less than 100.
result = [1]: [2] for [3] in items if item['price'] < 100
The comprehension creates a dictionary with uppercase names as keys and prices as values, iterating over each item.