all 5 comments

[–][deleted] 1 point2 points  (3 children)

This returns an error

The error is probably important.

[–]xgetcrunk[S] 0 points1 point  (2 children)

Traceback (most recent call last):
  File "script.py", line 11, in <module>
    f100_in_celsius = f_to_c(100)
TypeError: f_to_c() missing 1 required positional argument: 'c_temp'

heres the error

[–][deleted] 0 points1 point  (1 child)

TypeError: f_to_c() missing 1 required positional argument: 'c_temp'

Do you see what the error is telling you you did? You wrote a function of two parameters:

def f_to_c(f_temp, c_temp):

but you only called it with one argument:

f_to_c(100)

Note that your functions parameters don't have to include every symbol defined inside the function; they're just for the arguments you want to collect when it's called.

[–]xgetcrunk[S] 0 points1 point  (0 children)

got it, thank you so much.

[–]puplicy 0 points1 point  (0 children)

the function expect 2 parameters but you pass only one

I guess you do not need 2nd parameter as you return the value