Question
.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
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