is_prime I cannot understand


#1

I cannot understant what is wrong with code and why it doesn't work, selon me this code looks good
Can anyone explain me, what i am doing wrong?
And it shows me an error:
Your function fails on is_prime(9). It returns True when it should return False.

def is_prime(liczba):

liczba=abs(liczba)

if liczba<2 : 

    return False

if liczba==2 or liczba==3 :

    return True

for i in range(2,liczba):

        if liczba%i==0:
            return False

        else:
            return True

#2

Line this else: up with the for, not the if. Be sure to use the correct indentation.