3. Input


#1



I'm currently stuck on exercise 3. Input of the PygLatin translator, and the message that it keeps giving me is: "Oops, try again. Did you create a variable called original?" I don't know how to fix it, so if you do, it would be really help if you commented as I'm quite stuck right now! Thanks!


print 'Welcome to the Pig Latin Translator!'

# Start coding here!
    raw_input("Enter a word:")
    raw_input() = original


#2

You should just assign this

to a variable called original like this:

original = raw_input("Enter a word:")

Hope this helps! :slight_smile:


#3

print 'Welcome to the Pig Latin Translator!'

Start coding here!

original=raw_input("Enter a word:")
if len(original) > 0:
print original
else:
#some code

try this


#4

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