Jose Amoreira wrote:
Alan, Kent, hello!
Thanks for your help. As for your "curiosity", I'm teaching elementary physics
to undergraduates in computer engineering. Trying to speak my students'
language, I wanted to show them simple applications that compute numerical
values for the kinematics fo
Alan, Kent, hello!
Thanks for your help. As for your "curiosity", I'm teaching elementary physics
to undergraduates in computer engineering. Trying to speak my students'
language, I wanted to show them simple applications that compute numerical
values for the kinematics formulas of uniformly acc
"Jose Amoreira" wrote
Of course I could redefine my module function, including the parameter a
in
the list of arguments, but I'd rather not.
Why not? That would be good computer science practice and the
most reliable way to do it. Why do you not want to go down that
route? Is there a specif
On Wed, Oct 14, 2009 at 7:26 AM, Jose Amoreira wrote:
> I want to use a variable defined in an interactive session with the python
> interpreter inside a function imported from a module.
>
> For instance, imagine that my module (call it defs.py, for instance) consists
> of:
> #coding=utf-8
> def