Amity
API Lab — Parse Shark Name
“Read the JSON, find the fin.” — Harbor Telemetry
Challenge:
Parse the shark name from a mock API JSON response.
Research Station • Mock Endpoint
Task:
Implement
parse_shark_name(shark_id)
.
Use the provided
get_shark_info
to obtain the JSON string.
get_shark_info
is hidden from view to prevent tampering and returns a JSON with keys
{"id","name","last_seen"}
.
Click
Run Unit Tests
. If all tests pass, you'll get the flag.
def parse_shark_name(shark_id): # Your code here return "" # Test runner do not edit below run_selected_test()
Run Unit Tests
Output or flag will appear here...