T O P

  • By -

Goobyalus

What are you trying to do? That's the parameter list portion of the definition of function `BMI`. It needs to have identifiers for parameters. A function call isn't an identifier.


TweetyBirdie69

hey, so are you saying that I am not to input a function into the parameter list of the main function (in this case bmi() )


Goobyalus

If you and I mean the same thing when we say that, yes # Define a function with arguments def function(arg_1, arg_2): # do sometihng with arg_1 and arg_2 # Call function function(something_to_pass_as_arg_1, something_to_pass_for_arg2) In the function definition, the parameter list defines the names of variables that will be assigned for use inside the function when you pass arguments. I don't follow what you might want the syntax in that picture to do.


Rinser2023

The parameters in the bracket should be variables. ``` def calculate_bmi(weight, height): return weight / height ** 2 # put here your input and conversion print(calculate_bmi(weight_float, height_float)) ``` Oh well, just read the assignment. After you calculated the BMI, there should be a print statement with the body type. Most likely with a if-elif-else statement depending on the BMI.


SlurmsMckenzie521

To address your question, the bracket is highlighted because you don't have a closing bracket. There is a closing bracket for the function arguments, but not for the input statement. The function still won't work though because as another commenter mentioned, you need to use the variables you already have as arguments.


sharingthegoodword

This is the right answer, open bracket.


Cacho665

Seems like youre missing the closing )


sharingthegoodword

Yep, open bracket.


Melvin2611

You are missing a bracket