It's most likely a compile error, as you never introduce X
. Also, you should read the instructions again. It clearly says what the input should be (x
). So the method should start like the following:
def is_even(x):
if ...:
return "yep"
else:
return "nope"