Quotes help make search much faster. Example: "Practice Makes Perfect"

Saturday, November 24, 2012

Codecademy: "Check Yourself... some more"


#sample solution


print "Welcome to the English to Pig Latin translator!"
original = raw_input("Enter a word: ")

def check_string(original):
  if len(original) >= 1 and original.isalpha():
return original
  else:
return "empty"

print check_string(original)

No comments:

Post a Comment


This is an example of scrolling text using Javascript.

Popular Posts