Medium
A Static Helper
Write
class Temperature with a @staticmethod c_to_f(c) and a @classmethod from_f(cls, f) that builds a Temperature from Fahrenheit (store Celsius). Read a Fahrenheit value, build the object and print its Celsius (1 decimal), then Temperature.c_to_f(100).Input
One number.
Output
Two lines.
Sample 1
Input
212
Output
100.0 212.0
Sample 2
Input
32
Output
0.0 212.0
Output appears here