I am just testing a function however the function returns nothing. I can't quite understand the rules. New to programming.
What I've tried:
Def func0(x, y):
if x < y:
z = (x*y) - x
return z
else:
w = (y*y) - 1
return w
This returns nothing when called.
For example I'm expecting if I call the function: func0(5,6) For it to return 25
Is there a better way to achieve or write this?
Thank you