Question: 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
Get step-by-step solutions from verified subject matter experts
