Celsius_to_Fahrenheit (beginner)
Write a python program/function asking if you want to convert Fahrenheit to Celsius or Celsius to Fahrenheit. Then convert. Temperature in degrees Fahrenheit (°F) = (Temperature in degrees Celsius (°C) * 9/5) + 32 Temperature in degrees Celsius (°C) = (Temperature in degrees Fahrenheit (°F) * 5/9) - 32 [this should be VERY easy] scroll down to see my code... def CtoF_FtoC(inpt, cORf): if inpt == 'C to F': c = cORf f = (c * 9/5) + 32 return f if inpt == 'F to C': f = cORf c = (f * 5/9) - 32 return c