Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Reliability Engineering Designing And Operating Resilient Database Systems

Authors: Laine Campbell, Charity Majors

1st Edition

978-1491925942

More Books

Students also viewed these Databases questions

Question

=+j Describe how EU directives impact IHRM.

Answered: 1 week ago

Question

=+and reduction in force, and intellectual property.

Answered: 1 week ago