Error


#1

the error is below. No matter how i retype false it continues to give me this error. I have logged out and logged back in and that did not seem to help.

Oops, try again. by_three(1) returned ' False ' instead of False

Has anyone seen anything like this before?


#2

If the function looks like this,

def by_three(n):
    if n % 3 == 0:
        return 'True'
    else:
        return 'False'

it will result in that error messge.

def by_three(n):
    if n % 3 == 0:
        return True
    else:
        return False