Question: Python: Read string fav _ drink from input, and output the following, all separated by spaces: 'The drink' The value of fav _ drink 'has'
Python: Read string favdrink from input, and output the following, all separated by spaces:
'The drink'
The value of favdrink
'has'
The length of favdrink
'characters'
Ex: If the input is milkshake, then the output is:
The drink milkshake has characters
Note: printa b c outputs variables a b and c 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
