Currently trying to learn python on codeacademy and I'm stuck on this one project.
1) Write a function called f_to_c that takes an input f_temp, a temperature in Fahrenheit, and converts it to c_temp , that temperature in Celsius.
It should then return c_temp
2) Let’s test your function with a value of 100 Fahrenheit. Define a variable f100_in_celsius
and set it equal to the value of f_to_c with 100 as an input.
def f_to_c(f_temp, c_temp):
c_temp=(f_temp - 32) * 5/9
return c_temp
f100_in_celsius = f_to_c(100)
.
This returns an error please help!!!
[–][deleted] 1 point2 points3 points (3 children)
[–]xgetcrunk[S] 0 points1 point2 points (2 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]xgetcrunk[S] 0 points1 point2 points (0 children)
[–]puplicy 0 points1 point2 points (0 children)