Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

.com/courses/232269/assignments/2572957?module_item_id=8360455 Please refer to all that you have learned thus far. While there are always many ways to solve a coding challenge, please limit the

.com/courses/232269/assignments/2572957?module_item_id=8360455 Please refer to all that you have learned thus far. While there are always many ways to solve a coding challenge, please limit the solutions to the skills acquired thus far in the class. Remember: You will post your code solution to codePost. Save the file as: roosevelt.py If you apply solutions beyond what has been discussed, full credit may not be given. If you have questions, feel free to contact me prior to submission. Assignment Exercise: In this exercise, you will be required to do the following: Take the following phrase: The only thing we have to fear is fear itself 1. Convert it to a list 2. Create a new, empty list. This will be used to store the results for step 3. 3. Inspect each word in the list 1. If the word in the list starts with a vowel (excluding.y), then: 1. add the letters "way" to the end of the word. 1. For example: the word "and" would become "andway" 2. Append the modified word to the new list 2. If the word in the list does not start with a vowel (including y), then: 1. take the first letter from the word and move it to the end of the word 2. add to the end of the word, the letters "ay" 1. For example: the word "money" would become "oneymay" 3. Append the modified word to the new list 4. convert the new list to a string and print that string out 1. HINT: use join() So the end result should be: W

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

Step: 3

blur-text-image

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

Machine Learning In Finance From Theory To Practice

Authors: Matthew F Dixon, Igor Halperin, Paul Bilokon

1st Edition

3030410676, 978-3030410674

More Books

Students also viewed these Finance questions

Question

1 . Television News channels importantance of our Life pattern ?

Answered: 1 week ago

Question

1. How is the newspaper help to our daily life?

Answered: 1 week ago

Question

1. Prepare a short profile of Mikhail Zoshchenko ?

Answered: 1 week ago

Question

What is psychology disorder?

Answered: 1 week ago