Question: Write code in python to convert all entered data as feet to yards. The user will enter floats separated by spaces OR newlines. When the
Write code in python to convert all entered data as feet to yards. The user will enter floats separated by spaces OR newlines. When the user is done entering data, the user will enter the string "end". The "end" string will always be on a newline by itself and will never occur in the middle or at the end of the line of input. The output should be lines. The first line should contain the number of inputs the user entered. The second line should contain all the conversions separated by spaces. If the user does not enter any inputs, the program should print and exit. The count is never rounded and all other outputs should should be rounded to decimal places.
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
