Skip to content

Instantly share code, notes, and snippets.

@codecademydev
Created August 26, 2017 09:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save codecademydev/7ba80dd9eaa096e4fceedc840838bf77 to your computer and use it in GitHub Desktop.
Save codecademydev/7ba80dd9eaa096e4fceedc840838bf77 to your computer and use it in GitHub Desktop.
Codecademy export
print 'Welcome to the Pig Latin Translator!'
pyg = 'ay'
# Start coding here!
original = raw_input("Enter a word:")
if len(original) > 0 and original.isalpha():
word = original.lower()
first = word[0]
print original
else:
print "empty"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment