Checkpoint 19.2.1.
This function converts temperature in degrees F to degrees C. What code goes where the ______________ is to complete it correctly?
def convertFtoC(tempF):
tempF = tempF - 32
tempC = (5 / 9) * tempF
______________
return
followed by the value to return. The value can be a literal value like 3.14
or "Hello there"
, but will generally be a variable that we calculated within the function.sideC
is what gets returned.hypotenuse_length
. So let’s add a call to the function. This working program asks for the lengths of two sides from the user and then uses those two values a
and b
to call hypotenuse_length
.def convertFtoC(tempF):
tempF = tempF - 32
tempC = (5 / 9) * tempF
______________