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?

Refer to the exhibit.

200-901 (1)51_1

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])
A . {‘color’: ‘green’, ‘items’: [‘kiwi’, ‘grape’]}
B . [‘kiwi’, ‘grape’]
C . lettuce
D . kiwi

Answer: D

Latest 200-901 Dumps Valid Version with 211 Q&As

Latest And Valid Q&A | Instant Download | Once Fail, Full Refund

Subscribe
Notify of
guest
1 Comment
Inline Feedbacks
View all comments
bob
bob
4 years ago

I could not get this to work. Is the syntax accurate?