diff options
| author | Egor Tensin <egor@tensin.name> | 2026-06-18 16:54:00 +0200 |
|---|---|---|
| committer | Egor Tensin <egor@tensin.name> | 2026-06-18 16:54:00 +0200 |
| commit | c663acc4ed8e7d2a9e4389a3e8f790d60a070a0c (patch) | |
| tree | d37fca42651fad8b0c55984a8796881ce8243777 /algorithms/input_kind.py | |
| parent | add .git-blame-ignore-revs (diff) | |
| download | sorting-algorithms-c663acc4ed8e7d2a9e4389a3e8f790d60a070a0c.tar.gz sorting-algorithms-c663acc4ed8e7d2a9e4389a3e8f790d60a070a0c.zip | |
use format strings
Diffstat (limited to 'algorithms/input_kind.py')
| -rw-r--r-- | algorithms/input_kind.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/algorithms/input_kind.py b/algorithms/input_kind.py index b91d298..68a93d8 100644 --- a/algorithms/input_kind.py +++ b/algorithms/input_kind.py @@ -30,4 +30,4 @@ def gen_input_for_sorting(n, case=InputKind.AVERAGE): return _gen_input_from(sample(range(n), n)) if case is InputKind.WORST: return _gen_input_from(range(n - 1, -1, -1)) - raise NotImplementedError("invalid input kind: " + str(case)) + raise NotImplementedError(f"invalid input kind: {case}") |
