INGInious / INGInious/demo-tasks

[tutorial] random inputs example does not allow floats

Open
#10 0 comments 0 reactions 0 assignees View on GitHub
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.