Skip to content

Issue 62: Find the words that appear in every sentence #61

Open

Description

@pushpam2404

The problem

Write a program that accepts multiple sentences and finds the words that occur in every sentence.

The file

python-open-source-challenge/issue-62.py

That is the only file you need to open, and the only one you should change.

The function you are fixing is common_sentence_words(). There are 3 # TODO: comments in it. Each one sits next to something that is wrong or missing — they are clues, not answers.

What to do

  1. Comment /claim below. A bot assigns this issue to you.
  2. Fork the repository and create a branch: git checkout -b fix/issue-62
  3. Run the file first, so you can see what failing looks like:
    python3 python-open-source-challenge/issue-62.py
    You will get an AssertionError. That is expected — it is the work waiting for you.
  4. Work through the # TODO: comments and repair the code.
  5. Run it again until it prints All checks passed!
  6. Open a pull request whose description contains Closes #61.

How you know you are done

python3 python-open-source-challenge/issue-62.py
Output
Before AssertionError
After All checks passed!

Nothing else counts as finished.

Rules

  • Do not rewrite the program from scratch. Reading somebody else's code and making a small, careful change is the skill this is teaching.
  • Do not edit check_solution(). That is the marking scheme. Changing the test so it agrees with your code is not a fix.
  • Change only python-open-source-challenge/issue-62.py. One issue, one file, one pull request.

What you will practise

  • using sets to answer questions about membership and overlap
  • reading a string character by character and deciding what to keep

What to expect: one loop or one condition. If you know if and for, you have everything you need.

No prior open source experience is assumed. This repository exists so that this can be your first pull request.

Stuck?

Read check_solution() at the bottom of the file first. The assert lines spell out exactly what the function should return for a given input, and that is often clearer than the description above.

Still stuck? Comment here saying what you have tried. Asking is not failing.

Activity

  1. added
    good first issueGreat for your very first pull request
    help wantedMaintainers would like community help here
    hacktoberfestPart of the Hacktoberfest 2026 challenge
    difficulty: beginnerOne loop or one condition. If you know if and for, you can do this
    topic: stringsWorking with text, characters and words
    topic: setsMembership, duplicates, intersections and differences
    on Oct 1, 2026
  2. MBHarshaVardhan commented on Oct 5, 2026

    @MBHarshaVardhan

    /claim

  3. github-actions commented on Oct 5, 2026

    @github-actions

    Assigned to @MBHarshaVardhan. It is yours.

    Next steps

    1. Fork this repo and clone your fork
    2. git checkout -b fix/short-description
    3. Make the change, commit, push
    4. Open a PR with Closes #61 in the description

    If you get stuck, comment here saying what you have tried. If you change your mind, comment /unclaim — no hard feelings, that is genuinely fine.

  4. PrianshuKumarSahu commented on Oct 5, 2026

    @PrianshuKumarSahu
    Contributor

    /claim

  5. github-actions commented on Oct 5, 2026

    @github-actions

    Sorry @PrianshuKumarSahu, this issue is already assigned to @MBHarshaVardhan.

    Please pick another one labelled good first issue — there are plenty. If @MBHarshaVardhan has not pushed anything in 5 days, this issue is automatically released and you can claim it then.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

difficulty: beginnerOne loop or one condition. If you know if and for, you can do thisgood first issueGreat for your very first pull requesthacktoberfestPart of the Hacktoberfest 2026 challengehelp wantedMaintainers would like community help herestatus: claimedSomeone is working on this — pick a different onetopic: setsMembership, duplicates, intersections and differencestopic: stringsWorking with text, characters and words

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions