#Take the users input
words = raw_input("Enter some text to translate to pig latin: ")
print "You entered: ", words
#Now I need to break apart the words into a list
words = words.split(' ')
#Now words is a list, so I can manipulate each one usinga loop
for i in words:
if len(i) >= 3: #I only want to translate words greater than 3 characters
i = i + "%say" % (i[0])
i = i[1:]
print i
else:
pass
Okay good. Have a good day. Also i recommend possibly putting your code in a loop so they can translate more than once before the program stops that is the only recommendation I have for it otherwise it is well done.
while():
#Take the users input
words = raw_input("Enter some text to translate to pig latin: ")
print "You entered: ", words
#Now I need to break apart the words into a list
words = words.split(' ')
#Now words is a list, so I can manipulate each one usinga loop
for i in words:
if len(i) >= 3: #I only want to translate words greater than 3 characters
i = i + "%say" % (i[0])
i = i[1:]
print i
else:
pass
You know what it works as it is and I can’t get a loop to work with this code so just keep it as it is okay? It won’t work with a loop for some reason so it will be good as is. Good work