Question: in python First, read strings fav _ drink 1 and fav _ drink 2 from input and assume fav _ drink 1 is always longer

in python First, read strings fav_drink1 and fav_drink2 from input and assume fav_drink1 is always longer than fav_drink2. Then, output the following, all separated by spaces:
The value of fav_drink1
'has'
The length of fav_drink1 minus the length of fav_drink2
'more character(s) than'
The value of fav_drink2
Click here for example
Ex: If the input is:
espresso
milk
then the output is:
espresso has 4 more character(s) than milk

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!