We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Python-programming-exercises/100+ Python challenging programming exercises.txt
Line 1942 in 22bb9b3
Line 1953 in 22bb9b3
The solution shown is print(random.sample(range(100), 5))
print(random.sample(range(100), 5))
However that will only generate numbers between 0 and 100, but the question asks for 100 to 200.
The solution should be print(random.sample(range(100, 200), 5))
print(random.sample(range(100, 200), 5))
The text was updated successfully, but these errors were encountered:
The solution should be print(random.sample(range(100, 201), 5))
print(random.sample(range(100, 201), 5))
Since 200 should be included in the output, your solution forgot that range stop is n-1
Sorry, something went wrong.
Thank you,Joshua-Burt and ticktaktoe33 for pointing this out,made a PR regarding the issue.
No branches or pull requests
Python-programming-exercises/100+ Python challenging programming exercises.txt
Line 1942 in 22bb9b3
Python-programming-exercises/100+ Python challenging programming exercises.txt
Line 1953 in 22bb9b3
The solution shown is
print(random.sample(range(100), 5))
However that will only generate numbers between 0 and 100, but the question asks for 100 to 200.
The solution should be
print(random.sample(range(100, 200), 5))
The text was updated successfully, but these errors were encountered: