simple multiplication and division calculator on python 3 : i'm new to all this so i think the instructions are confusing me. so here is the exercise:

    single parameter is operator with arguments of * or / operator
    default operator is "*" (multiply)
    return the result of multiplication or division
    if operator other than "*" or "/" then return "Invalid Operator"


there's plenty that's confusing me about the instructions here, and i'm aware that i haven't solved it but here's the closest i have come to solving this:
def multiply(operator):

op = (x)

return op

ops = input ("what would you like the operator to be? ")

x = input()

y = input()

if ops == "*":

return int (x) * int (y)

elif ops == "/":

return int (x) / int (y)

else:

return "invalid operator"

print (multiply())

i can't keep "return" outside of the function so, do i keep all the conditionals inside the function ?
omg im so confused. can someone please help me with this.