I am stuck on 6/15. The is_prime lesson
The code below is what i put in. In my head it makes sense, but it always fails. It says it returns None instead of True on is_prime(3)
I don't necessarily want the answer. I just want to know what I am doing wrong.
def is_prime(x): if x < 2: return False elif x == 2: return True else: for n in range(2, x - 1): if n % 2 == 0: return False else: return True