Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Card Games] Update 'approx_average_is_average' docstring summary #3675

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
2 changes: 1 addition & 1 deletion exercises/concept/card-games/.meta/exemplar.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def card_average(hand):


def approx_average_is_average(hand):
"""Return if an average is using (first + last index values ) OR ('middle' card) == calculated average.
"""Return if the (average of first and last card values) OR ('middle' card) == calculated average.

:param hand: list - cards in hand.
:return: bool - does one of the approximate averages equal the `true average`?
Expand Down
2 changes: 1 addition & 1 deletion exercises/concept/card-games/lists.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def card_average(hand):


def approx_average_is_average(hand):
"""Return if an average is using (first + last index values ) OR ('middle' card) == calculated average.
"""Return if the (average of first and last card values) OR ('middle' card) == calculated average.

:param hand: list - cards in hand.
:return: bool - does one of the approximate averages equal the `true average`?
Expand Down
Loading