< Back

In this post-lab you will demonstrate knowledge of input statements by writing a simple Python program.

Details

Write a Python program that asks the user for a temperature (in Fahrenheit), and outputs the temperature in Celsius. You can use the equation:

\[ C = (F - 32) \times \frac{5}{9} \]

For your conversion

Example

$ python3 convert_to_celsius.py
  What temperature would you like to convert? 72
  72 degrees fahrenheit is 22.22222222222222 degrees celsius.

Submission

Please submit your code on Inquire by Monday, Sept. 12th at noon.