Skip to content

Commit

Permalink
solve py formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Nada-saad635 committed Dec 30, 2024
1 parent 9ef5cd4 commit 3f2220c
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions solutions/fizz_buzz.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,20 @@

def fizz_buzz(number: int) -> str:
"""
Returns 'Fizz' for multiples of 3, 'Buzz' for multiples of 5,
'FizzBuzz' for multiples of both 3 and 5, and the number itself for others.
parameters:
number (int): The number to evaluate.
Returns:
str: 'Fizz', 'Buzz', 'FizzBuzz', or the string representation of the number.
>>> fizz_buzz(15)
'FizzBuzz'
>>> fizz_buzz(5)
'Buzz'
>>> fizz_buzz(7)
'7'
Returns 'Fizz' for multiples of 3, 'Buzz' for multiples of 5,
'FizzBuzz' for multiples of both 3 and 5, and the number itself for others.
parameters:
number (int): The number to evaluate.
Returns:
str: 'Fizz', 'Buzz', 'FizzBuzz', or the string representation of the number.
>>> fizz_buzz(15)
'FizzBuzz'
>>> fizz_buzz(5)
'Buzz'
>>> fizz_buzz(7)
'7'
"""
assert isinstance(number, int), "Input must be an integer"
Expand Down

0 comments on commit 3f2220c

Please sign in to comment.