Hi all!
I cannot understand, why assertion error "6 is divisible by 3" is thrown on this code:
if not number % 3 and not number % 5:
print("Fizz buzz")
elif not number % 3:
print("Fizz")
elif not number % 5:
print("Buzz")
else:
return str(number)
return 'Fizz Buzz'
Would be grateful for help and explanation!
Created at: 2019/07/01 17:12; Updated at: 2019/07/04 22:07
The question is resolved.