how do i make a function that compares its arguments in python

12 Views Asked by At

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
0

There are 0 best solutions below