Wrong solution on line 1953
Nobody has claimed this yet.
Assessment
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Newbie friendliness
- 68/100
Research direction
Open 100+ Python challenging programming exercises.txt at the linked locations around lines 1942 and 1953, and compare the prompt with the displayed solution. Update the solution so it samples five values from the requested 100–200 range. Done means the exercise and its answer agree; verify the edited line remains valid Python.
Written by the indexing model from the issue text.
Description
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))
- Dominant language
- No language data
- Stars
- 29.7k
- Forks
- 7k
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from zhiwehu/Python-programming-exercises
-
Difficulty 1/5 Under an hour Newbie friendliness 72/100
zhiwehu/Python-programming-exercises#192 · 2 comments ·
-
Difficulty 1/5 Under an hour Newbie friendliness 48/100
zhiwehu/Python-programming-exercises#210 · 1 comment · 1 reaction ·
-
PythonOpen
Difficulty 5/5 Over a week Newbie friendliness 5/100
zhiwehu/Python-programming-exercises#204 · 1 comment ·
-
Difficulty 5/5 Over a week Newbie friendliness 15/100
-
Difficulty 5/5 Over a week Newbie friendliness 10/100
All issues in zhiwehu/Python-programming-exercises
Similar issues
-
check:passed streams:add
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 1 day
-
needs review new event
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
processing/processing-community-day#333 · 1 comment ·
Maintainers usually reply within 1 day
-
feedback simulation workshop
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
githubnext/gh-aw-workshop#4218 ·
Maintainers usually reply within 1 day
-
good first issue quality
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
StudentSuite/awesome-student-resources#554 ·
Maintainers usually reply within 1 day
-
content good first issue
Difficulty 2/5 Under an hour Newbie friendliness 88/100
StudentSuite/awesome-skills-plugins-for-students#297 ·
Maintainers usually reply within 1 day