I am trying to convert a word from English to Pig Latin. This involves taking the first letter of user input and putting it at the end, then adding letters 'ay' to end. Here is code I have so far.
print "Welcome to the Pig Latin translator"
print "Input a word in English"
what_the_user_input = raw_input("Type in word and hit 'Enter'.")
if type(what_the_user_input) == string:
return "This is a string!"
return "This is not a string!"
tail = what_the_user_input(1:)
not able to parse or capture single characters within a string
Replace this line with your code.