Light Mode
Dark Mode
AssertionError: 5 is divisible by 5

Hi not able to understand what the error is

Here is my code

def checkio(number: int) -> str:
    if (number%5 == 0 and number%3 == 0):
        return ("Fizz Buzz")
    elif (number%3 == 0):
        return ("Fizz")
    elif (number%5 == 0):
        return ("BUZZ")
    else:
        return (str(number))

Debugger log screen shot attached

Attachment
Created: March 10, 2022, 1:25 a.m.
Updated: March 10, 2022, 6:31 a.m.
0
4
User avatar
aganpat