A newly created item has no recorded activations, while an item restored from a save may already have a count. Let callers omit uses for new items without discarding an explicit count. The change belongs in the initializer's parameter list.
class QuestProgress:
def __init__(self, title, stage=1):
self.title = title
self.stage = stage
start = QuestProgress("Find the tower")
later = QuestProgress("Cross the marsh", stage=24)
The first call omits stage, so its parameter receives 1. The second call supplies a keyword argument, so it receives 24. Both calls still execute the same assignment to self.stage.
Required parameters come before optional parameters in this signature. Keep self first, even though callers do not pass it explicitly. The caller can supply the optional value positionally or by keyword; its parameter name becomes part of that calling interface.
A parameter default is not a class attribute. In the earlier class-default lesson, an instance read could fall back to data stored on the class. Here the initializer uses a default argument and then stores a separate attribute on every new instance. Changing one instance's stage does not change what a future call will receive.
Immutable values such as the integer used here make uncomplicated defaults. A list as a default argument can accidentally be shared across calls; the next lesson will put a fresh list inside the initializer instead.
The editor contains a working initializer whose uses argument is still required. Your change belongs in its signature, not in the assignments. Do not replace every supplied count with zero: imported items must keep their history. The probe deliberately constructs one new item and one used item, so you can observe both paths after a single edit.
GameItem initializer so uses defaults to 0 when omitted, while explicit positional or keyword counts are preserved.Edit main.py. Press Run to inspect the supplied console probe, then Submit to check your implementation. The completed probe reports 0 for the new item and 6 for the imported one.