value = 527 unit = "C" if unit == "C": converted = value * 1.8 + 32 elif unit == "F": converted = (value - 32) / 1.8 print(converted)
To embed this project on your website, copy the following code and paste it into your website's HTML: