Question: Start with this Python file Download this Python file. In the # Function Definition section, define two functions: The first function should prompt the user
Start with this Python file Download this Python file.
In the # Function Definition section, define two functions:
The first function should prompt the user to enter a measurement in centimeters, convert that measurement from centimeters to inches, and output the result in inches.
The second function should prompt the user to enter a measurement in inches, convert that measurement from inches to centimeters, and output the result in centimeters.
Make sure that your functions are called correctly when the program executes.
Your program must follow the Python style guide provided in class.
Your program must only utilize the methods and structures we have covered in class. # Functions Definition
# Program Commands
menuChoice y
while menuChoice Q: # begins menu loop
print
Enter to convert centimeters to inches."
printEnter to convert inches to centimeters."
printEnter Q to quit."
menuChoice inputWhat do you want to do
if menuChoice :
cmtoin # run cm to in conversion
elif menuChoice :
intocm # run in to cm conversion
elif menuChoice Q:
printThanks for playing. Have a great day!" # Quit
else:
printInvalid Input" # User input an invalid choice
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
