We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 31a7cb6 commit 46ba861Copy full SHA for 46ba861
1 file changed
api/core/computation.py
@@ -3,7 +3,7 @@
3
from api.core.constants import SequenceWords
4
5
6
-def _find_fizzbuzz_up_to(n: int) -> str:
+def _find_fizzbuzz_of(n: int) -> str:
7
"""Performs a standard FizzBuzz check on a given number.
8
9
If the number is divisible by 3, returns "Fizz". If the number
@@ -37,4 +37,4 @@ def generate_fizzbuzz_sequence(limit: int) -> List[str]:
37
Returns:
38
list: Resulting FizzBuzz outputs
39
"""
40
- return [_find_fizzbuzz_up_to(i) for i in range(1, limit + 1)]
+ return [_find_fizzbuzz_of(i) for i in range(1, limit + 1)]
0 commit comments