Please leave the following link in the post so we can find the unit module, else replace it with a link to the exact lesson:

def is_prime(x):

if x<2:

return False

if x == 2:

return True

for n in range(2,x):

if x%n ==0:

return False

else:

return True

print is_prime(9)

this code works for all numbers except x=9. whats wrong in this code?