Check yourself


#1

print 'Welcome to the Pig Latin Translator!'

if len(original) > 0:
print original
else:
print "Empty"
original = raw_input("Enter a word:")

can anyone tell me what's wrong?


#2

Hi You should put this part before the if statement


#3

Hello,

I tried this :

print 'Welcome to the Pig Latin Translator!'

original = raw_input("Enter a word:")

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

It also doesn't work...


#4


#5

Hi you missing the : after your if condition


#6

its a indent problem you if ststement isn't right indent it should be like that

original = raw_input("Enter a word:")
if len(original) > 0:
    print original
else:
    print "Empty"

#7

thanks for the help mate


#8

2 independent variables if and else
No need to indent the if:
no need to indent the else:

Here is the answer just in case.

print 'Welcome to the Pig Latin Translator!'

Start coding here!

raw_input("Enter a Word:")
original = raw_input()
if len(original) > 0: # No need to indent this line
print "original" # Indent this line

else: # No need to indent this line
print "empty" # Indent this line