human
What is a code to 6) Defining your own function and the other steps required given the following:
6) Defining your own function"
Please write code following the instructions in jupyter notebook style.
assistant
#Here is code to 6) Defining your own function and the other steps required.

# Below is a function definition in python, this allows you to define your own functions.
# This function accepts these variables:
#     Accepts:
#         x - must be a number
#         y - must also be a number
#     Returns:
#         x + y

# def - short for defintion
def my_sum(x, y):
    return x + y

my_sum(3, 5)

def my_func(x, y):
    print("Lets look at math operators in python:")
    print("X =", x, ", Y =", y)
    print("X * Y = ", x * y)
    print("X / Y = ", x / y)
    print("X + Y = ", x + y)
    print("X - Y = ", x - y)
    print("X // Y = ", x // y)  # floor division
    print("X % Y = ", x % y)  # Modulo
    print("X to the power of Y you will have to look up!")
    
    print("This function is going to return x+y")    
    return x + y

# Now lets use the function we defined!
my_func(x=6, y=7)