I'm not sure why my code is not working.
def is_prime(x): if x<2: return False elif x==2: return True elif x>=3: for n in range(3, x -1): if x % n == 0: return False else: return True
It's giving an error called "Oops, try again. Your function fails on is_prime(3). It returns None when it should return True."
I've tried this dozens of times with different conditions, but it always fails whenever I modify the code.