Question: Read strings fav _ fruit and least _ fav _ fruit from input. Output the following: ' My favorite fruit' followed by fav _ fruit,

Read strings fav_fruit and least_fav_fruit from input. Output the following:
'My favorite fruit' followed by fav_fruit, then 'has' followed by the length of fav_fruit, then 'characters', all separated by spaces.
'My least favorite fruit' followed by least_fav_fruit, then 'has' followed by the length of least_fav_fruit, then 'characters', all separated by spaces.
Click here for example
Ex: If the input is:
apple
pear
then the output is:
My favorite fruit apple has 5 characters
My least favorite fruit pear has 4 characters
Note: print (a, b, c) outputs variables a, b, and c separated by spaces in one line.
1
2
3
 Read strings fav_fruit and least_fav_fruit from input. Output the following: 'My

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!