"PygLatin check yourself"


#1

Hi,

I am stuck here. I don;'t know what i am doing wrong.

I can get my code to run. I an confused.

Please help.

Thanks.

..................................................................................

print 'Welcome to the Pig Latin Translator!'

# Start coding here!
original = raw_input ('Tiger')
if len(original) > 0:
    print original
else len(original) < 0:
    print "empty"

.........................................................................................................


#2

else is everything else, so it can't have a condition. remove the condition (len(original) < 0) from the else


#3

Thank you.

It worked. Importantly thank you for the providing a "reason". Helped me to understand why better.


#4

That is why i included the reason, it is the most important part of my answer. Understanding why will help you improve as a programmer. An answer will just get you pass the exercise


#5

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