Question: Assign variable fav _ flower with 'lupine' and read string least _ fav _ flower from input. Output the following: ' My favorite flower' followed
Assign variable favflower with 'lupine' and read string leastfavflower from input. Output the following:
My favorite flower' followed by favflower, then 'has' followed by the length of favflower, then 'characters', all separated by
spaces.
My least favorite flower' followed by leastfavflower, then 'has' followed by the length of leastfavflower, then 'characters',
all separated by spaces.
Click here for example
Ex: If the input is calendula, then the output is:
My favorite flower lupine has characters
My least favorite flower calendula has characters
Note: print outputs variables and separated by spaces in one line.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
