if len(original) > 0 and original.isalpha:
print "original"
else:
print "emptyl"
```
Here is my output when I enter a word:
Welcome to the Pig Latin Translator!
Enter a word: 5rot2
empty
original
I entered a word with strings and numbers (5rot2) and it printed both the if conditional statement and the else! Can anyone please show me what is wrong with the code?
I will appreciate some enlightenment, please and thanks in advance.
there is no hints, no cheatsheet, even if i click solution then run keep failing code need help
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”
Welcome to the Pig Latin Translator!
Enter a word:Traceback (most recent call last):
File “python”, line 4, in
ExecTimeoutException: Program took too long to terminate.
It’s happening this error from 3/11 I think…when you click on RUN…and it’s says ENTER A WORD (on the right window)…first click in the left window…then click in the right window ( where it’s says ENTER A WORD) there you would be able to write a word and press ENTER. There the code it’s gonna run whithout problem.
To continue testing the code…just do the same over and over again.
Lesson bugged. pressed run and enter the word in the console but it says :
Traceback (most recent call last):
File “python”, line 4, in
ExecTimeoutException: Program took too long to terminate.
I have been using solutions to proceed all this time.