Write a function (getResults) that returns the Fahrenheit equivalents of Celsius temperatures. The function will have the Celsius as the parameter.

The formula for converting a temperature from Celsius to Fahrenheit is

F = 9C + 32

5

F

where F is the Fahrenheit temperature, and C is the Celsius temperature.

Your function returns the Fahrenheit equivalent. (Python)

Write a function getResults that returns the Fahrenheit equivalents of Celsius temperatures The function will have the Celsius as the parameter The formula for converting

Answer :

Here's a Python function that converts a temperature from Celsius to Fahrenheit using the formula F = 9/5 * C + 32:

The Python Code

def getResults(celsius):

fahrenheit = (9/5 * celsius) + 32

return fahrenheit

You can call this function with a Celsius temperature to get the Fahrenheit equivalent:

>>> getResults(0)

32.0

>>> getResults(100)

212.0

>>> getResults(-40)

-40.0

Note that the function assumes that the input temperature is in Celsius. If you pass in a temperature in Fahrenheit, the result will be incorrect.

Read more about python programming here:

https://brainly.com/question/26497128

#SPJ1