5. Check Yourself... Some More


#1

I type in a word with only letters and then it prints empty...
when my code is looking fine... at least i think
Here's my code:

print 'Welcome to the Pig Latin Translator!'

Start coding here!

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

else:
print "empty"


#2

Not asked for.

Use original here.


#3

That worked Thanks a lot!


#4

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