Intermediate Python user needed help

Vlastimil Brom vlastimil.brom at gmail.com
Sun Aug 5 17:06:49 EDT 2012


2012/8/5 John Mordecai Dildy <jdildy85 at gmail.com>:
> 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
> --
> http://mail.python.org/mailman/listinfo/python-list

Hi,
you would need to assign something to the name "start", e.g.
start = 3
the next error would probably be undefined "point", which should get
subtracted from "start" according to the code ...

However, in your case, this is likely another typo in the code,
you probably want "start_point", which is defined in the script already.

hth,
  vbr



More information about the Python-list mailing list