You will write a test for the three characteristics of a robot and use it on five machines.
Your tasks.
is_robot, return True only when the machine has a structure, electrical components and is programmable.robots with the names of the machines that are robots, in the order of the dictionary.missing to the name of the characteristic that the toy car lacks: "structure", "electrical" or "programmable".Have you tried it?
Do the tasks in the editor first, and run the checker after each one. Its hints help when a check fails. When you are ready, compare your code with this solution.
Log in to join the discussion.
Loading…