Code is not giving output

def f_to_c(f_temp):
  return (f_temp - 32) * 5/9

  f100_in_celsius = f_to_c(100)

def c_to_f(c_temp):
  return (c_temp * 9/5) + 32  
  c0_in_fahrenheit = c_to_f(0)

The function calls (which are suppose to call the functions) are nested within the body of the function.

How are the function calls ever reached then?

1 Like

you have just typed last two lines in function definition of c_to_f, just backspace these two lines and it would work :slight_smile:

1 Like