mirror of
https://github.com/TheAlgorithms/Python.git
synced 2026-03-13 09:50:19 +08:00
refactor: Indent ... for visual purposes (#7744)
This commit is contained in:
committed by
GitHub
parent
e8915097c4
commit
9bba42eca8
@@ -20,12 +20,12 @@ def bead_sort(sequence: list) -> list:
|
||||
|
||||
>>> bead_sort([1, .9, 0.0, 0, -1, -.9])
|
||||
Traceback (most recent call last):
|
||||
...
|
||||
...
|
||||
TypeError: Sequence must be list of non-negative integers
|
||||
|
||||
>>> bead_sort("Hello world")
|
||||
Traceback (most recent call last):
|
||||
...
|
||||
...
|
||||
TypeError: Sequence must be list of non-negative integers
|
||||
"""
|
||||
if any(not isinstance(x, int) or x < 0 for x in sequence):
|
||||
|
||||
Reference in New Issue
Block a user