CPSC120B
Fundamentals of Computer Science I

Post-lab 4

Input

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

Submit your code on the course Inquire site.