Why does it always print empty?


#1

print 'Welcome to the Pig Latin Translator!'

raw_input("Enter a word:")
original = raw_input()
if len(original) and original.isalpha()> 0:
print original
else :
print "empty"

no matter what i type into the interpreter, even if it meets the if statement, it always prints out empty.
Can anyone see what is happening?


#2

yeah you wrote this

if len(original) and original.isalpha()> 0:

which is wrong rather you must write

if len(original) >0 and original.isalpha():

#3

oh ok, that helps.
thnx!


#4

I am still coming up with empty?

print 'Welcome to the Pig Latin Translator!'

Start coding here!

raw_input("Enter a word:")
original = raw_input()
if len(original) >0 and original.isalpha():
print original
else:
print "empty"


#5

reduce these two lines to

original = raw_input("Enter a word:")

#6

thanks for your help!