Intermediate Python user needed help

Zero Piraeus schesis at gmail.com
Sun Aug 5 17:07:43 EDT 2012


:

On 5 August 2012 16:52, John Mordecai Dildy <jdildy85 at gmail.com> wrote:
> Current Problem at the moment
>
> Traceback (most recent call last):
>   File "ex26.py", line 66, in <module>
>     beans, jars, crates = secret_formula(start-point)
> NameError: name 'start' is not defined
>
> anyone know how to make start defined

I think you could help yourself by reading a good tutorial or two ...
so far, the problems you've raised suggest quite strongly that you
either aren't reading the code with anything like the care that you
need to, or just don't understand Python at all.

Hint: if the offending line were written like this, would it be more
obvious what's wrong?

  beans, jars, crates = secret_formula(start - point)

 -[]z.



More information about the Python-list mailing list