Skip to content
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
Cannot retrieve contributors at this time
title: Input validation
short title: Valid
documentation: " validation"
example start: 2
example end: 2
mandatory: True
question: |
There were ${ number_of_apples }
apples and ${ number_of_oranges }
question: |
There are 10 fruit in all.
subquestion: |
How many apples and oranges
are there?
- Apples: number_of_apples
datatype: integer
- Oranges: number_of_oranges
datatype: integer
validation code: |
if number_of_oranges + number_of_apples != 10:
validation_error("The number of fruit must add up to 10!")