Update 1.py
This commit is contained in:
parent
4e1f0f6ef0
commit
f4f52d9441
@ -1,7 +1,6 @@
|
|||||||
temp = input()
|
temp = input()
|
||||||
if "C" in temp:
|
temp_num = float (temp[:-1])
|
||||||
temp = float (temp[:-1])
|
if "C" == temp[-1]:
|
||||||
print(temp*9/5+32, "F", sep="")
|
print(temp_num*9/5+32, "F", sep="")
|
||||||
else:
|
else:
|
||||||
temp = float (temp[:-1])
|
print((temp_num-32)*5/9, "C", sep="")
|
||||||
print((temp-32)*5/9, "C", sep="")
|
|
||||||
|
Loading…
Reference in New Issue
Block a user