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
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,11 @@ Personal solutions to [**Python** track][python_track] exercises from [**Exercis
6. ["**Black Jack**" solution](python/black-jack/black_jack.py).
7. ["**Little Sister's Essay**" solution](python/little-sisters-essay/string_methods.py).
8. ["**Little Sister's Vocabulary**" solution](python/little-sisters-vocab/strings.py).
9. ["**Card Games**" solution](python/card-games/lists.py).
<!-- Put next solution item here! -->

[python_version_badge]: https://img.shields.io/badge/Python%203.13-3776AB?logo=python&logoColor=FFD43B
[track_completion_badge]: https://img.shields.io/badge/Track%20completion-5.5%25-604fcd?logo=exercism&logoColor=604fcd&labelColor=e9ecef
[exercises_completed_badge]: https://img.shields.io/badge/Exercises%20completed-8%2F146-604fcd?logo=exercism&logoColor=604fcd&labelColor=e9ecef
[track_completion_badge]: https://img.shields.io/badge/Track%20completion-6.2%25-604fcd?logo=exercism&logoColor=604fcd&labelColor=e9ecef
[exercises_completed_badge]: https://img.shields.io/badge/Exercises%20completed-9%2F146-604fcd?logo=exercism&logoColor=604fcd&labelColor=e9ecef
[python_track]: https://exercism.org/tracks/python
[exercism]: https://exercism.org
47 changes: 47 additions & 0 deletions python/card-games/HINTS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# Hints

## General

## 1. Tracking Poker Rounds

- Lists in Python may be [constructed][constructed] in multiple ways.
- This function should [return][return] a `list`.

## 2. Keeping all Rounds in the Same Place

- Sequence types such as `list` support [common operations][common sequence operations].
- This function should [return][return] a `list`.

## 3. Finding Prior Rounds

- Sequence types such as `list` support a few [common operations][common sequence operations].
- This function should [return][return] a `bool`.

## 4. Averaging Card Values

- To get the average, this function should count how many items are in the `list` and sum up their values. Then, return the sum divided by the count.

## 5. Alternate Averages

- Sequence types such as `list` support a few [common operations][common sequence operations].
- To access an element, use the square brackets (`<list>[]`) notation.
- Remember that the first element of the `list` is at index 0 from the **left-hand** side.
- In Python, negative indexing starts at -1 from the **right-hand** side. This means that you can find the last element of a `list` by using `<list>[-1]`.
- Think about how you could reuse the code from the functions that you have already implemented.

## 6. More Averaging Techniques

- Sequence types such as `list` already support a few [common operations][common sequence operations].
- Think about reusing the code from the functions that you just implemented.
- The slice syntax supports a _step value_ (`<list>[<start>:<stop>:<step>]`).

## 7. Bonus Round Rules

- Lists are _mutable_. Once a `list` is created, you can modify, delete or add any type of element you wish.
- Python provides a wide range of [ways to modify `lists`][ways to modify `lists`].


[common sequence operations]: https://docs.python.org/3/library/stdtypes.html#sequence-types-list-tuple-range
[constructed]: https://docs.python.org/3/library/stdtypes.html#list
[return]: https://www.w3schools.com/python/ref_keyword_return.asp
[ways to modify `lists`]: https://realpython.com/python-lists-tuples/#lists-are-mutable
Loading
Loading