← Back to Course

Categorise the Validation

Drag each Python code snippet into the correct validation category

Category Definitions
Range Check
Ensures a value falls within an acceptable minimum and maximum range.
Type Check
Ensures data entered is the correct data type (e.g. integer, not text).
Length Check
Ensures input meets a required number of characters (minimum, maximum, or exact).
Presence Check
Ensures that a required field has not been left empty.
Format Check
Ensures data matches a specific pattern or structure (e.g. email contains @).
Placed: 0 / 15
Score: 0 / 15
Drag snippets into the categories above