csc-python-solutions/15/b/1.py
2021-02-17 10:36:18 +01:00

8 lines
165 B
Python

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