csc-python-solutions/15/b/1.py

8 lines
165 B
Python
Raw Normal View History

2021-02-17 09:36:18 +00:00
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="")