A school stores its lockers in a table. You will write three validation checks and use them to decide which typed records go into the table.
Your tasks.
length_check(code): return True only if the locker code has exactly characters.range_check(floor): return True only if the floor is from to , including both ends.presence_check(name): return True only if the name is not empty.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…