May-26-2018, 06:40 PM
def celcius(c): c = 0 return f=(1.8 * c) + 32 print celcius()Directions follow. I'm was just trying to get the first part before going on and I'm running into issues.
Write a function that takes one parameter - a float which represents a temperature in Celcius - and returns a float which represents that temperature in Fahrenheit.
Then, write a function that does the opposite conversion.
Here are the formulas for temperature conversion:
F=(1.8 x c) +32
C=(f-32) /1.8
Finally, write some code below your functions that
uses them to convert 0 degrees Celcius and 100 degrees
Celcius to Fahrenheit, and to convert 40 degrees
Fahrenheit and 80 degrees Fahrenheit to Celcius.
Make sure to print your results for the above
to the console.