Answered step by step
Verified Expert Solution
Link Copied!

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

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

Data Mining Concepts And Techniques

Authors: Jiawei Han, Micheline Kamber, Jian Pei

3rd Edition

0123814790, 9780123814791

More Books

Students also viewed these Databases questions

Question

Draw a labelled diagram of the Dicot stem.

Answered: 1 week ago

Question

2 What is the philosophy of performance management?

Answered: 1 week ago