Stuck at Check Yourself ....some more


#1

my code is not working

print 'Welcome to the Pig Latin Translator!'

original = raw_input("Please input your word - ")

if len(original) > 0 and original.isaplha():
    print original
else:
    print "empty"

This error comes in
Welcome to the Pig Latin Translator!
Please input your word - j
Traceback (most recent call last):
File "python", line 5, in
AttributeError: 'unicode' object has no attribute 'isaplha'


#2

You mean isalpha() ?


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.