I have this code:

from math import floor

def is_int(x):
  if floor(x) == x:
    return True
    return False

Why is my code not working?

This is the excercise:


define not working? There is no output, because you put the function call inside of the function body


Thanks, i fixed it. There is stil no output in the terminal.


you still need to print the returned result, by putting a print statement before the function call


Aha thanks. Can’t believe it was that easy.