Answered step by step
Verified Expert Solution
Question
1 Approved Answer
PYTHON Write a program that does the following i. Define a list called fruit_salad with strings in the order below 1. pineapple 2. guava 3.
PYTHON
Write a program that does the following i. Define a list called fruit_salad with strings in the order below 1. pineapple 2. guava 3. banana 4. apple 5. pear ii. Define a new list iii. Using a loop, get the first three letters of each word and add them to the new list iv. Print the new list v. Create a string variable new_fruit 1. Set the value to the combination of the first three letters of each word into a single word in order vi. Print new_fruit 1. HINT: the value of new_fruit should be pinguabanapppea
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