Hi guys I’m a beginner with Python.
I’m doing the fizz_buzz exercise, after copy the exact code Mosh did. I got an error.
this is my code (exactly has Mosh’s)
def fizz_buzz(input):
if (input % 3 == 0) and (input % 5 == 0):
return “FizzBuzz”
if input % 3 == 0:
return “Fizz”
if input % 5 == 0:
return “Buzz”
return input
print(fizz_buzz(3))
HERE IS THE ERROR MESSAGE I GOT
if (input % 3 == 0) and (input % 5 == 0):
^
IndentationError: expected an indented block