Câu 179: 350-901: Developing Applications using Cisco Core Platforms and APIs (DEVCOR)
{'lat': 37.4180951010362, 'lng': -122.098531723022, 'address': '', 'serial': 'Q2HP-F5K5-F98Q','mac': '88:15:44:ea:f5:bf', 'lanIp': '10.10.10.15','url': 'https://n149.meraki.com/DevNet-Sandbox/n/EFZDavc/manage/nodes/new_list/78214561218351','model': 'MS220-8P', 'switchProfileId': None, 'firmware': 'switch-11-31', 'floo…
Nội dung câu hỏi
{'lat': 37.4180951010362, 'lng': -122.098531723022, 'address': '', 'serial': 'Q2HP-F5K5-F98Q','mac': '88:15:44:ea:f5:bf', 'lanIp': '10.10.10.15','url': 'https://n149.meraki.com/DevNet-Sandbox/n/EFZDavc/manage/nodes/new_list/78214561218351','model': 'MS220-8P', 'switchProfileId': None, 'firmware': 'switch-11-31', 'floorPlanId': None}Refer to the exhibit. A developer needs to find the geographical coordinates of a device on the network L_397561557481105433 using a Python script to query the Meraki API. After running response = requests.get() against the Meraki API, the value of response.text is shown in the exhibit. What Python code is needed to retrieve the longitude and latitude coordinates of the device?
Các lựa chọn
Đáp án được giữ gọn theo nhãn A, B, C, D trong phần bình chọn tương tác.
- A. latitude = response.text['lat'] longitude = response.text['lng']
- B. latitude = response.json()['lat'] longitude = response.json()['lng'] — đáp án hiện tại
- C. latitude = response.json()[0] longitude = response.json()[1]
- D. latitude = response.text[0] longitude = response.text[1]
Cộng đồng
0 bình luận công khai. Tên thành viên được ẩn một phần.