Refer to the exhibit.

A REST API returns this JSON output for a GET HTTP request, which has been assigned to a variable called “vegetables”. Using Python, which output is the result of this command?
print(filter(lambda 1: 1[‘type’] == ‘fruit’, vegetables) [0][‘items’][0][‘items’] [0])
- {‘color’: ‘green’, ‘items’: [‘kiwi’, ‘grape’]}
- [‘kiwi’, ‘grape’]
- lettuce
- kiwi
Reveal Solution Next Question