mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-05 09:21:13 +08:00
Make some ruff fixes (#8154)
* Make some ruff fixes * Undo manual fix * Undo manual fix * Updates from ruff=0.0.251
This commit is contained in:
@ -49,7 +49,7 @@ def fizz_buzz(number: int, iterations: int) -> str:
|
||||
out += "Fizz"
|
||||
if number % 5 == 0:
|
||||
out += "Buzz"
|
||||
if not number % 3 == 0 and not number % 5 == 0:
|
||||
if 0 not in (number % 3, number % 5):
|
||||
out += str(number)
|
||||
|
||||
# print(out)
|
||||
|
Reference in New Issue
Block a user