Check Yourself...Some More error message


#1



https://www.codecademy.com/courses/python-beginner-2W5v7/0/5?curriculum_id=4f89dab3d788890003000096#

File "python", line 7
if len(original) > 0 and .isalpha():
^
SyntaxError: invalid syntax

I also get the message, "Oops! Did you accidentally delete the variable named original?"


I think it should print "Enter a Word:" but I keep getting error messages. I've tried following adding an elif statement, as suggested for other posters, but that doesn't work either.


print 'Welcome to the Pig Latin Translator!'


original = raw_input("Enter a word:")
print original

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


#2

in your if condition, you want to check original is a alphabetic character:

original.isalpha():

if you have a and keyword, you need to specify conditions at both sides of the and