title: How to round floats to 1st decimal place?
body: <p>For a class I am to write a program that converts Fahrenheit to Celsius and visa versa. The result should be rounded to the first decimal place. I have tried the "round" function in a number of ways without success.</p>
  
  <pre><code>temp=float(input("Enter a temperature value to convert: "))
  unit=str(input("Convert to Fahrenheit or Celsius? Enter f or c: "))
  
  if unit=="c" or unit == "C":
      degC=(temp)
      temp= (1.8*temp)+32
      print(str(temp) + " degrees fahrenheit = " + str(degC) + " degrees Celsius. ")
  if unit=="f" or unit == "F":
      degF=(temp)
      temp= (temp-32)/1.8
      print(str(temp)+ " degrees celsius = " + str(degF) + " degrees Fahrenheit. ")
  else:
      print("you did not enter an f or c. Goodbye ")
  </code></pre>