Page 1 of 1

Refer to the exhibit. A REST API returns this JSON output for a GET HTTP request, which has been assigned to a variable

Posted: Fri Jul 22, 2022 2:52 pm
by answerhappygod
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])
 1
1 (133.24 KiB) Viewed 74 times
A. {'color': 'green', 'items': ['kiwi', 'grape']}
B. ['kiwi', 'grape']
C. lettuce
D. kiwi