fizzbuzz in python

def fizz_buzz(num):
    if num % 3 == 0 and num % 5 == 0:
        return "fizzBuzz"
    elif num % 3 == 0:
        return "fizz"
    elif num % 5 == 0:
        return "buzz"
    else:
        return num

Here is what the above code is Doing:
1. We’re defining a function called fizz_buzz.
2. We’re passing in a parameter called num.
3. We’re using an if statement to check if num is divisible by 3 and 5.
4. If num is divisible by 3 and 5, we’re returning the string “fizzBuzz”.
5. If num is divisible by 3, we’re returning the string “fizz”.
6. If num is divisible by 5, we’re returning the string “buzz”.
7. If num is not divisible by 3 or 5, we’re returning the number itself.