Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exercise 39 - test passes with wrong (not full) solution #249

Closed
isbushcar opened this issue Aug 18, 2022 · 1 comment
Closed

Exercise 39 - test passes with wrong (not full) solution #249

isbushcar opened this issue Aug 18, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@isbushcar
Copy link

isbushcar commented Aug 18, 2022

In exercise 39 test passes if user writes print(round(random())) as a solution.
That happens because that code returns 0 or 1 and test expects result to be >= 0 and <= 10.
Maybe it would be better to change task and ask user to write a code that prints random integer from 1 to 11.

В упражнении 39 тест проходит, если пользователь пишет print(round(random())) в качестве решения.
Это происходит, поскольку такой код возвращает 0 или 1, а тест ожидает, что результат будет >= 0 и <= 10.
Возможно было бы лучше изменить задачу и просить написать код, который выводит случайное число от 1 до 11.

@ashikov
Copy link
Contributor

ashikov commented Aug 18, 2022

@sgmdlt, что думаешь?

@ashikov ashikov added the enhancement New feature or request label Aug 18, 2022
@sgmdlt sgmdlt closed this as completed Apr 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

No branches or pull requests

3 participants