if type(x) is int:
Here is my code to check if x is integer, however it returns always with such error:
"Oops, try again. Your function fails on is_int(7.0). It returns False when it should return True."
/*by the way how to insert a code formatted with 4 spaces?*/