Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started