It's working just fine, but I'm not sure why the x == int(x) line works, or what it means.
I expected for "if x == int:" to work just fine, I'm guessing adding (x) at the end of int, somehow further defines what to consider an integer? or something along those line??? I'm really just spit-balling here. I could just accept that it works and it is what it is. But I want to understand WHY
def is_int(x): if x == int(x): return True else: return False