error in the question from ahri fox? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 1

error in the question from ahri fox?

There is a question what numbers can be returned by randint(6,8). I chose 6,7,8 however got a "wrong" result. Did anyone got the same issue with this question?

1st Jul 2017, 10:09 AM
Oleksandr
Oleksandr - avatar
4 Answers
+ 9
https://s24.postimg.org/uew6fhfg5/Screenshot_2017-07-01-03-41-32.png looks like its working correctly to me! I guess either you or Sololearn made a mistake.
1st Jul 2017, 10:43 AM
Ahri Fox
Ahri Fox - avatar
+ 7
I don't remember it, but if it was wrong, woops! yeah it should be 6, 7, 8
1st Jul 2017, 10:41 AM
Ahri Fox
Ahri Fox - avatar
+ 2
Thank you for double checking it for me. Though I am pretty sure that I chose 6,7,8 there is always room for human error (mine in this case) I will be more attentive to this question in case it spots me once again)
1st Jul 2017, 11:17 AM
Oleksandr
Oleksandr - avatar
+ 1
The randint returns both the starting, end point, and of course the numbers in-between. So, there is an issue with that question if it marks it as wrong. Perhaps the author will spot the post here.
1st Jul 2017, 10:15 AM
Sapphire