Modify the code provided in the Python file named temp_conversion_revisited.py such that it converts any given value
Question:
Modify the code provided in the Python file named temp_conversion_revisited.py such that it converts any given value of F to C. Specifically, please follow the instructions below to create user-friendly code:
Use the variable name temp_f to store the value of temperature in Fahrenheit that is provided by the user. When collecting the input, please prompt the user with the following message:
"Please enter temperature in Fahrenheit: "
Hint 1: How can you get input from the user (i.e., see the pre-class activity)?
Hint 2: What is the data type input by the user?
Use the variable name temp_c to store the value of the temperature in Celsius, which is computed by the temperature conversion formula (i.e., the mathematical formula that equates Fahrenheit F to Celsius C is C = (F - 32) x 5 / 9).
Modify the last line using variable names temp_f and temp_c to display the correct conversion.
temp_f = # Step 1
temp_c = # Step 2
print( , "Fahrenheit is equal to" , , "Celsius.")
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill