Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ The `score` function uses the same [generator expression][generator-expression]
Instead of looking up the value in a _dictionary_, it looks up the `InEnum` class member value.

[classes]: https://docs.python.org/3/tutorial/classes.html
[dictionary-approach]: https://exercism.org/tracks/python/exercises/scrabble-score/approaches/dictionary
[enum]: https://docs.python.org/3/library/enum.html
[generator-expression]: https://peps.python.org/pep-0289/
[int-enum]: https://docs.python.org/3/library/enum.html#enum.IntEnum
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ You can read more about unpacking in the [concept:python/unpacking-and-multiple-

Then the code checks if the character is in the unpacked letters and if it is we return its score.

[dictionary-approach]: https://exercism.org/tracks/python/exercises/scrabble-score/approaches/dictionary
[generator-expression]: https://peps.python.org/pep-0289/
[for-loop]: https://realpython.com/python-for-loop/
[tuple]: https://docs.python.org/3/tutorial/datastructures.html#tuples-and-sequences
Loading