Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

A small mistake in line44 in code

Open
#12 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
python
Domain
documentation

Research direction

Start by locating line 44 containing getResultAsString in the Python exercise source. Determine what mistake the issue refers to from the surrounding exercise context, then verify that the corrected method still maps draw, win, and loss results correctly.

Written by the indexing model from the issue text.

Description

def getResultAsString(self, result):
res = {
0: "draw",
1: "win",
-1: "loss"
}
return res[result]

Dominant language
Python
Stars
30
Forks
47
PR merge metrics
No merged PRs in 30d

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.

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.