Functionality broken


#1



https://www.codecademy.com/courses/python-beginner-2W5v7/0/5?curriculum_id=4f89dab3d788890003000096#


No matter what I type as input the program is throwing false statements. Input is not being stored in variable.


I expect the program to work.


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"


#2

Top line is doing nothing but asking for input. The second asks for input and caches it, but has no prompt. Add the text to the second one, and remove the first.

original = raw_input("Enter a word: ")

#3

Thank you very much!


#4

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