Lesson 13.8
A project is built from four parts: idea → screen → data → logic.
Name: Guess the number
Does: a guessing game
Input: a number
Keeps: the secret number and the attempts
Logic: higher/lower hints
The rule: if the project doesn't fit into five lines, it's too big. Narrow it down: one game, one function, one clear goal.
The check gives the project project — a dictionary with the fields from the plan. Try to
build it: check that the plan is complete (are all four parts there) and print:
Project: <name>;Plan ready: <yes or no> — all four fields are filled with non-empty strings;Logic: <what happens>.The plan is complete if all four fields are non-empty.
Check it with all(...) over the list of parts and .strip() for spaces.
Print the name, the answer yes/no and the logic field.