Question: 1 WTake the users input 2 words = raw_input(Enter some text to translate to pig latin: ) 3 print You entered: words 4 5 #Now

1 WTake the users input 2 words = raw_input("Enter some text to translate to pig latin: ") 3 print "You entered: words 4 5 #Now I need to break apart the words into a list 6 words = words.split(' ') 7 8 #Now words is a list, so I can manipulate each one usinga loop 9 10 for i in words: 11 if len(i) >= 3: #1 only want to translate words greater than 3 characters 12 i = i + "%say" % (i[0]) 13 i = i[1:] 14 print i 15 else: 16 pass
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
