Getting Ready For Physics Class

Hi, so I’m writing code for the Physics Class project and I keep getting an error at line 9 for return; stating that it’s invalid syntax. I think I may be blind can someone tell me what I’m doing wrong thanks!

def f_to_c(f_temp): c_temp = (f_temp - 32) * 5/9 return c_temp f100_in_celsius = f_to_c(100) print(f100_in_celsius) def c_to_f(c_temp): f_temp = (c_temp * (9/5) + 32 return f_temp c0_in_fahrenheit = c_to_f(0) print(c0_in_fahrenheit)

https://www.codecademy.com/courses/learn-python-3/projects/physics-class

Never mind I found the extra parentheses lol.

1 Like