INGInious / INGInious/demo-tasks
[tutorial] random inputs example does not allow floats
Open
- Dominant language
- Shell
- Stars
- 0
- Forks
- 5
- PR merge metrics
- No merged PRs in 30d
Description
The run script fails in the user pass a float as input. `int()` actually does not allow any string which is not an integer.
https://github.com/INGInious/demo-tasks/blob/dd0b7fe620b39a96bd39a9bff999dbcb377b1d40/tutorial/07_random_inputs/run.py#L10-L11
This should be replaced by `float()` or rely on exception handling.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.