Bug: Lowercase answers are marked wrong

Open Beginner friendly
#2 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
90/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Quiet
Tech stack
python
Domain
cli

Research direction

Open src/quiz.py and run it with the reproduction steps, entering lowercase a for the first question. Update the answer handling so both lowercase and uppercase forms are accepted, then rerun the quiz to confirm lowercase a is marked correct.

Written by the indexing model from the issue text.

Description

bug

If you type a lowercase letter like "a" instead of "A", the quiz marks it as wrong even though it is the correct answer.

Steps to reproduce:

  1. Run python3 src/quiz.py
  2. For the first question, type a (lowercase)
  3. The answer is marked incorrect even though A is correct

Expected: Both "a" and "A" should be accepted as valid answers.

The bug is in src/quiz.py.

Dominant language
Python
Stars
43
Forks
18
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.

More from pamelafox/github-copilot-mcp-tutorial

All issues in pamelafox/github-copilot-mcp-tutorial

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.