def is_int(x): if is_int(): return True else: return False it says that Oops, try again. Does your is_int function take exactly one argument (an integer)? Your code threw a "is_int() takes exactly 1 argument (0 given)" error.
is_int() doesn't return true or false. You need to fix your if statement.
We won't be calling the function on itself. If you check the Hint, you will see an excellent example.
return x % 1 == 0 # return value will be True or False
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.