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

Incorrect Comment About Accessing Dictionary Elements

Open Beginner friendly
#104 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

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

Research direction

Search the repository for the exact comment "# You may access set elements by keys." and inspect the surrounding dictionary example. Replace "set" with "dictionary" as requested, then verify the comment accurately describes the code and that no other occurrence remains.

Written by the indexing model from the issue text.

Description

The comment "# You may access set elements by keys." is misleading. The code is about dictionaries, not sets. In Python, set elements cannot be accessed by keys—only dictionary elements can. The comment should be corrected to "# You may access dictionary elements by keys." to accurately reflect the code's behavior.

Dominant language
Python
Stars
18.3k
Forks
3k
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 trekhleb/learn-python

All issues in trekhleb/learn-python

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.