LearnPy Hub
← Classes & Objects problems
Medium

Temperature Converter

Write a Temperature class created from Celsius with methods to_f() and to_k(). Print both with 1 decimal on one line.

Input

One number.

Output

Two numbers.

Sample 1

Input
0
Output
32.0 273.1

Sample 2

Input
100
Output
212.0 373.1
solution.py
Output appears here
Temperature Converter · Python practice problem · LearnPy Hub