Amity
Tracking — Multi-Shark Control
“Tag ’em, track ’em, bring ’em home.” — Harbor Telemetry
Challenge:
Track multiple sharks with classes for
Shark
and
Tracker
.
Research Station • Fleet Monitor
Task:
Create class
Shark
with
id
,
name
,
location
.
Create class
Tracker
supporting
add_shark
,
update_location
,
get_info
.
Click
Run Unit Tests
. If all tests pass, you'll get the flag.
class Shark: def __init__(self, shark_id, name, location): # Your code here pass class Tracker: def __init__(self): # Your code here pass def add_shark(self, shark): # Your code here pass def update_location(self, shark_id, location): # Your code here pass def get_info(self, shark_id): # Your code here return (None, None) # Test runner do not edit below run_selected_test()
Run Unit Tests
Output or flag will appear here...