Hunter's Gym Dictionary Lab
Practice Python dictionaries by building the backend logic for a gym membership fob system.
Case
You are a new intern at Hunter's Gym near Baruch College. Hunter needs a simple backend system to register members, assign gym fobs, and check whether a member can enter.
The gym has 10,000 fobs numbered 1 to 10000. A fob can only be assigned to one active member record at a time.
Use Python dictionaries as the data store: dictionary keys should make lookup fast, and dictionary values should hold the related member or fob information.
Python Editor
Question 1
Checker Results
Loading Python...
The checker is loading. If it takes a moment, keep this page open.