csc-python-solutions/15/b/1 - Forty Below In The Winter.py
2021-02-17 12:33:25 +01:00

7 lines
150 B
Python

temp = input()
temp_num = float (temp[:-1])
if "C" == temp[-1]:
print(temp_num*9/5+32, "F", sep="")
else:
print((temp_num-32)*5/9, "C", sep="")