RunestoneInteractive / RunestoneInteractive/java4python
Add integer division comparison to Numeric in Data Types
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 28
- Forks
- 42
- PR merge metrics
- No merged PRs in 30d
Description
Is your feature request related to a problem? Please describe.
The Python code block using a match statement that takes a two or three digit integer called grade and uses floor division to remove the rightmost digit. This may be confusing to students who are not aware that using floor division on a number like 85 will result in 8 when dividing the number by 10.
Describe the solution you'd like
Explain floor division here, and how it is being used to strip away digits so the grade can be used in the match statement.
Contributor guide
No contributing guide indexed for this repository
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.
Research direction
Find the Python code block in the Numeric in Data Types section that uses a match statement, the grade variable, and floor division. Read the surrounding lesson text, then explain how floor division turns 85 into 8 and strips the rightmost digit; it is done when students can understand why the grade is prepared for the match statement.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- documentation
- Issue type
- Documentation
- Difficulty
- 1/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 62/100