Jul-01-2020, 05:40 PM
Working from your code, the def volume(cargo) statement needs a colon at the end.
Can't tell if your indentation is correct, please repost using proper tags. Indentation is critical.
total_net_load = x Where does the interpreter get the value for x?
Next line - It appears you do not understand assignment statements. The = means it is an assignment. They are in the format
<variable> = <expression>, not the other way around.
No idea what you are trying to do with the return statement. That needs to be in the format return <expression> where <expression> resolves to a variable.
Note that in Python variables are objects, so you can substitute the word object in any of the above.
Can't tell if your indentation is correct, please repost using proper tags. Indentation is critical.
total_net_load = x Where does the interpreter get the value for x?
Next line - It appears you do not understand assignment statements. The = means it is an assignment. They are in the format
<variable> = <expression>, not the other way around.
No idea what you are trying to do with the return statement. That needs to be in the format return <expression> where <expression> resolves to a variable.
Note that in Python variables are objects, so you can substitute the word object in any of the above.