I am trying to make a function that takes its arguments and compares them, returning true if they are the same. I have this code but it keeps telling me I have an invalid syntax for the first argument. what do I have wrong?
def PnUcompare(X,Y):
if X == Y:
return True
else:
return False