RunestoneInteractive / RunestoneInteractive/java4python

Add integer division comparison to Numeric in Data Types

Open Beginner friendly
#149 3 comments 1 reaction 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.