Problem 166081 · easy · Phase 01 Prerequisites & Setup

Fahrenheit to Celsius

input · arithmetic · type conversion · rounding · f-strings

A weather app receives temperatures in Fahrenheit but its users think in Celsius. Read one temperature in Fahrenheit (may be a decimal or negative) and print a line of the form <F> F = <C> C, where both numbers are shown with exactly one decimal place.

The conversion is C = (F - 32) * 5 / 9.

Examples

Input:  72
Output: 72.0 F = 22.2 C
Input:  -40
Output: -40.0 F = -40.0 C

Constraints

  • -500 <= F <= 500

Goals

  • Apply a conversion formula to a float read from input
  • Show a float with exactly one decimal place
Starting Python…