Skip to content

Commit

Permalink
[Card Games] Update 'approx_average_is_average' docstring summary
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitrii Cheremushkin committed Apr 15, 2024
1 parent c421d43 commit 9191a1b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
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

0 comments on commit 9191a1b

Please sign in to comment.