Here is the code I used:
if type(x)== int:
Here is the error message:
Oops, try again. Your function fails on is_int(7.0). It returns False when it should return True.
How do i account for numbers like 7.0 being int when they are normally float?
Replace this line with your code.