Spent a long time on the is_prime exercise. I previously had:

def is_prime(x):

if x < 2:

return False

elif x >= 3:

for n in range(2,x):

if x%n == 0:

return False

else:

return True

else:

return True

this failed when it tried to pass is_prime(9), saying that it said True when it should of said False. I changed up the indentation at "else" at the "elif x>= 3". Shown below:

```
def is_prime(x):
if x < 2:
return False
elif x >= 3:
for n in range(2,x):
if x%n == 0:
return False
else:
return True
else:
return True
```

so basically it wanted the "else: return True" under the elif to be aligned with the "for n in ...". why did it want that? wouldn't that "else" be aligned with the "if"? the "if" says if its divisible evenly, then False, and my else would say return True, which is based on the results of that "if". What do you ya'll think? or did I confuse you? cause I think I just confused myself