Check Yourself....some more


#1

Hello every1 so i got this little error

lection: https://www.codecademy.com/courses/learn-python/lessons/pyglatin/exercises/check-yourself-some-more?action=lesson_resume&link_content_target=interstitial_lesson

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
else:
		print "empty"

#2

That is the if statement you should be using.

That one can be removed.


#3

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