Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 1

#!

/bin/python3

import sys
import os

# Add Celsius class implementation below.


class Celcius:
def __get__(self,i,o):
return 5.0/9.0*(i.fahrenheit - 32)
def __set__(self, i, val):
i.fahrenheit = 32 +((9/5)*val)

# Add temperature class implementation below.


class Temperature:
celsius = Celcius()
def __init__(self, i_f):
self.fahrenheit = i_f

#t1 = Temperature(212)
#t1.celcius =100
#print(res_lst)
'''Check the Tail section for input/output'''

if __name__ == "__main__":
with open(os.environ['OUTPUT_PATH'], 'w') as fout:
res_lst = list()
t1 = Temperature(int(input()))
res_lst.append((t1.fahrenheit, t1.celsius))
t1.celsius = int(input())
res_lst.append((t1.fahrenheit, t1.celsius))
fout.write("{}\n{}".format(*res_lst))

You might also like