Having trouble running this code accurately.
When checking values if its greater or equal or less than the next value. Not sure how to make it print unknown if the value is not an int.
def check(x, y):
if x == y:
return 'equal'
if a > b:
return 'greater than'
if x < y:
return 'less than'
#how can I add a line of code to return 'NA" if is not an int:
return "NA"
check(5, 5)
check('r', 5)
Guidance is appreciated.