Incorrect Comment About Accessing Dictionary Elements
Author: Imran-imtiaz48Created Jun 26, 2025Updated Jun 26, 2026
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.
Source: trekhleb/learn-python