4/4 PygLatin Help!


#1

print ‘Welcome to the Pig Latin Translator!’

Start coding here!

original = raw_input(“Enter a word:”)
if len(original) > 0:
print original

else print “empty”:

This comes out with an error of invalid syntax on the else line but i have no idea why?

Thanks,
Angus


#2
if condition:
  # do something
else:
  # do something else

#3

Appreciated, thank you!


#4

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