Check Yourself....some more


Hello every1 so i got this little error


It looks like your code prints original (“12345”) when original includes non-alphabetical characters.
It is supposed to write false if inserted 12345 or so

print 'Welcome to the Pyg Latin Translator!'

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


That is the if statement you should be using.

That one can be removed.


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