csc-python-solutions/15/b/1.py
2021-02-17 11:45:48 +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="")