A REST API retune this JSON output for a GET HTTP request, Which has assigned to a variable called “vegetables” Using python, which output is the result of this command?

Posted by: Pdfprep Category: 200-901 Tags: , ,

Refer to the exhibit.

A REST API retune this JSON output for a GET HTTP request, Which has 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 . Lettuce
B . Kiwi
C . [‘kiwi’, ‘grape’]
D . {‘color’: ‘green’, ‘items’: [‘kiwi’, ‘grape’]

Answer: B

Leave a Reply

Your email address will not be published.