Add number_guesse.py feature
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 74/100
Research direction
Start by reviewing the repository contribution guidelines and confirm the intended standalone filename, since the title says number_guesse.py while the solution requests number_guessing.py. Done means the file provides the specified upper-bound input, random secret number, repeated guesses with validation and Too High/Too Low hints, and a final guess count using the requested beginner-friendly structure.
Written by the indexing model from the issue text.
Description
Is your feature request related to a problem?
Currently the repository lacks an interactive
number guessing game implementation. There is no
example that demonstrates random number generation
combined with user input validation and game loop
logic in a beginner-friendly way.
Describe the Solution
Add a number_guessing.py file that implements a
complete number guessing game where:
- User defines the upper bound of the range
- Program generates a secret random number
- User guesses repeatedly until correct
- Program responds with "Too High" or "Too Low" hints
- Final score shows total number of guesses taken
Describe Alternatives
An alternative would be to add this as part of an
existing file, however a standalone file keeps the
code clean, readable, and easy to understand for
beginners learning Python fundamentals.
Additional Context
This is a classic beginner algorithm that covers:
- random module usage
- Input validation
- While loops
- Conditional statements
- Function design with type hints
The file will follow all repository contribution
guidelines including proper docstrings and clean
code structure.
Complexity
- Simple (< 50 lines)
- Medium (50-200 lines)
- Complex (> 200 lines)
- Dominant language
- Python
- Stars
- 35.4k
- Forks
- 12.9k
- Avg merge
- 2h 37m
- Merged PRs (30d)
- 1
Contributor guide
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 geekcomputers/Python
-
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
geekcomputers/Python#3205 · 2 comments ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
geekcomputers/Python#3060 · 1 comment ·
-
[BUG] shapchat Open
Difficulty 5/5 Over a week Newbie friendliness 10/100
geekcomputers/Python#3214 · 5 comments ·
-
Test of an Issue Open
Difficulty 5/5 Over a week Newbie friendliness 10/100
geekcomputers/Python#3209 · 5 comments ·
-
Add a feature by AI Open
Difficulty 5/5 Over a week Newbie friendliness 10/100
geekcomputers/Python#3185 ·
All issues in geekcomputers/Python
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100