PygLatin Check Yourself


#1

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

I need some help with Check Yourself Pyglatin Translator, I can't figure it out

ERRORS:

File "python", line 8
else:
^
SyntaxError: invalid syntax

It also said:

Oops, try again. Oops! Did you accidentally delete the variable called original?

I'm not quite sure what I did wrong, but it's probably really obvious. I'm also pretty sure I didn't delete the "original" variable, but I could be wrong

CODE:

print 'Welcome to the Pig Latin Translator!'

# Start coding here!
name = raw_input("Enter a word:")
original = raw_input()
if len(original) <0 and original.isalpha():
    print original 
    else:
        print "empty"

#2

Hi @thederpsquid1,

The indentation of this else block needs to be aligned with the indentation of the overlying if block that it is intended to match ...

    else:
        print "empty"

#3

Thank you, I've been stuck on this for about a week now.


#4