I keep getting this error message: Oops, try again. Your function fails on is_prime(0). It returns None when it should return False.
I thought the code would run properly but I think the error is in the for statement; but I can't figure it out.
Here is my code: def is_prime(x): for x in range (2, x - 1): if x % 2 == 0: return False else: return True