livepython.net

55. Python Program to Convert Celsius to Fahrenheit from Input

MediumConvert input

Overview

Read a number, apply a formula, and show the result neatly.

Problem Statement

Read a temperature in degrees Celsius and print it in Fahrenheit with one decimal place. For example, for 100, print:

100.0 C = 212.0 F

Use input() with no prompt text: the tests type the input for you, and a prompt would end up in your output.

Input

One value per line, in this order. Example:

100

Output

The output for that example:

100.0 C = 212.0 F

The tests try 3 different inputs.

Learn this firstChapter 7 · Convert Input to Numbers with int() and float()
solution.py
# write your code here

EXPECTED OUTPUT

1100.0 C = 212.0 F

YOUR OUTPUT

Press Run to see your output here. Lines are compared with the expected output.