
Few errors identified in the code
attached images are the question and outputs i recieved vs the expected outputs.
Kindly help me with the required changes
temparature = input()
unit = temparature[-1]
value = temparature[:-1]
if(unit=="C" or unit=="c"):
celcius = float(value);
print(str(round(celcius,2))+"C")
print(str(round((celcius*9/5)+32,2))+"F")
print(str(round(celcius+273,2))+"K")
elif(unit=="F" or unit=="f"):
fahr = float(value)
print(str(round((fahr-32)*5/9,2))+"C")
print(str(round(fahr,2))+"F")
print(str(round((fahr-32)*5/9+273,2))+"K")
elif(unit=="K" or unit == "k"):
kelv = float(value)
print(str(round(kelv-273.15,2))+"C")
print(str(round((kelv-273)*9/5+32,2))+"F")
print(str(round(kelv,2))+"K")