[Tutor] I don't understand why this program is said to be "not defined" when I test it.

zak nelson northgoingzak at gmail.com
Fri Oct 16 18:31:22 EDT 2015


I don't understand why this program is said to be "not defined" when I test
it.


def problem22(aList):
    length=len(aList)
    if (length>6):
        bueler=False
    else:
        bueler=True
        for i in aList:
            if(i < 0 and i > 6)==False:
                bueler=False
            else:
                buler=True
                if type(i)!=("integer"):
                    bueler=False
                else:
                    bueler=True
    return bueler


More information about the Tutor mailing list