Codington
0 of 6 problems solved • 0%

Exercise prompt

Check the Toolkit

Before a repair job, check that the toolkit contains every required tool. Extra tools are welcome.

Example

A set can cover a smaller list of conditions.

features = {"audio", "video", "captions"} print({"audio", "video"} <= features) # True print({"video", "chat"} <= features) # False

The <= operator asks whether everything on its left is present on its right. One missing feature is enough for the check to fail.

Your task

Fix ready_to_repair(required, available). The starter only accepts exact matches. Return True when every required tool is available, even if extra tools are packed or a name is listed twice. A job with no requirements is ready.