RE: Help - Getting Ready For Physics Class Python Lesson - Questions

Train_force=get _force (train_mass, train acceleration)
Print( train
force)

Save

I get error

Trace back (most recent call last)
File “ script.pay”, line 21
In < model>

Train_acceleration

Name error: name ‘train_mass is not defined

White space where it is not allowed. Train should be train. We don’t capitalize variables, only class definitions.

That is not a Python extension, as far as I know. script.py.

Again, lowercase is the norm for function names. print (train * force).

I’m not able to read your code because it is not formatted for posting. Check the Getting Started section for instructions.

Seeing only a snippet of your code is also going to lead to incorrect conclusions or worse, assumptions. Please post all the code.

Making this DM a public post.