I new at python programming and I am on a project about math, and in a moment I have faced a problem I need to do some operations about two values inside the function and according to their sizes or etc. there will be a output of this function. This is what i'm trying to do:
def my_func(x,y):
if x > y:
my_func() = x**y + y**x
else:
my_func() = y*x
and i will use this in an if statement.
if my_func(x,y) and my_func(x,z) == True:
#do something
i know it will not work cuz this is not the way the functions work. But if there is a way to do this i would be pleased to know. If this question looks a little bit weird, sorry i don't know very much about python programming but i'm trying to improve myself.