I'm trying to figure out how to show only one digit after the decimal point in a Celsius to Fahrenheit conversion assignment. The only one coming up with multiple digits thus far is 13 degrees Celsius, which ends up as 55.400000000000006. My for statement looks like this.
def main():
for ct in range (0, 21):
fe = 9 / 5 * (ct) + 32
print (ct, "Celsius equals", fe, "Fahrenheit")
Like I said, the program runs as expected, I just would like to clean that one conversion up.