Stuck on pop quiz!


#1



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


Anyone know if im doing this right? it feels right but i just want to double check with somebody. Thanks


print 'Welcome to the Pig Latin Translator!'

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

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


#2

Hi @vanillamushroom,

It probably doesn't matter at this point, but the prompt you have is slightly different from the one that Codecademy asked for in Exercise 3: Input!.

You have ...

original = raw_input("Enter a word")

Codecademy asked for ...

original = raw_input("Enter a word:")

... with a colon.

For some exercises, Codecademy is very strict, requiring the user to match exactly what the instructions specify.


#3

okay thank you didnt notice that! And is that it?


#4

The code looks good! :smile:


#5

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