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
13 changes: 10 additions & 3 deletions exercises/practice/bank-account/.docs/instructions.append.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,25 @@
# Instructions append

~~~~exercism/note

Python doesn't support "true" concurrency due to the [Global Interpreter Lock][GIL].
While work is ongoing to create support for [free-threading in Python][free-threading], it is still experimental.
Current standard library solutions such as [multiprocessing][multiprocessing-module] and [threading][threading-module] are difficult to implement with the current track tooling.


As a result, the concurrency requirement has been set aside for this exercise.
Account operations are sequential on a single thread, and no concurrency or "race condition" tests are run.
Account operations are sequential on a single thread, and no concurrency or "race condition" tests are run.

[GIL]: https://realpython.com/python-gil/

If you would like to experiment with free-threading or concurrency tests, we ask that you do so [locally][testing-locally].
For help with downloading and working on exercises locally, we recommend the [Exercism CLI][exercism-cli].

[exercism-cli]: https://exercism.org/cli-walkthrough
[free-threading]: https://docs.python.org/3/howto/free-threading-python.html
[threading-module]: https://docs.python.org/3/library/threading.html#module-threading
[GIL]: https://realpython.com/python-gil/
[multiprocessing-module]: https://docs.python.org/3/library/multiprocessing.html#sharing-state-between-processes
[testing-locally]: https://exercism.org/docs/tracks/python/tests
[threading-module]: https://docs.python.org/3/library/threading.html#module-threading
~~~~

<br>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
# Instructions append

*NOTE*: The description above mentions mathematical sets, but also that a Pythagorean Triplet {a, b, c} _must_ be ordered such that a < b < c (ascending order). This makes Python's `set` type unsuited to this exercise, since it is an inherently unordered container. Therefore please return a list of lists instead (i.e. `[[a, b, c]]`). You can generate the triplets themselves in whatever order you would like, as the enclosing list's order will be ignored in the tests.
~~~~exercism/note

The description above mentions [_mathematical sets_][math-sets], but also that a Pythagorean Triplet {a, b, c} _**must**_ be ordered such that a < b < c (_ascending order_).

This makes Python's [`set` type][python-sets] unsuited to this exercise, since it is inherently _unordered_.
You should return a [`list`][python-list] of `list`s instead (_e.g. `[[a, b, c]]`_).
You can generate the triplets themselves in whichever order you would like, as the enclosing `list`'s order will be ignored in the tests.

[math-sets]: https://en.wikipedia.org/wiki/Set_(mathematics)
[python-sets]: https://docs.python.org/3/tutorial/datastructures.html#sets
[python-list]: https://docs.python.org/3/tutorial/datastructures.html#more-on-lists
~~~~
13 changes: 8 additions & 5 deletions exercises/practice/sum-of-multiples/.docs/instructions.append.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
# Instructions append

You can make the following assumptions about the inputs to the
# Notes for this exercise on the Python track

You can make the following assumptions about the test inputs to the
`sum_of_multiples` function:
* All input numbers are non-negative `int`s, i.e. natural numbers
including zero.
* A list of factors must be given, and its elements are unique
and sorted in ascending order.

- All input numbers are **_non-negative `int`s_** (_i.e. natural numbers
including zero_).
- A `list` of factors must be given, and its elements are unique
and sorted in ascending order.
Loading