Intermediate Python user needed help
Tim Chase
python.list at tim.thechases.com
Sun Aug 5 19:27:47 EDT 2012
On 08/05/12 16:32, Roy Smith wrote:
> Tim Chase <python.list at tim.thechases.com> wrote:
>> You either mean something like "start_point" (with an underscore
>> instead of a minus), or you're performing a subtraction of "start
>> minus point", in which case you'd have to assign those values before
>> you use them.
>
> Or he meant to pass an optional parameter:
>
> beans, jars, crates = secret_formula(start=point)
>
> or an element access:
>
> beans, jars, crates = secret_formula(start.point)
Or pass a boolean
beans, jars, crates = secret_formula(start>point)
Or subscript with an also-missing close-bracket
beans, jars, crates = secret_formula(start[point])
Or call a function with an also-missing close-paren
beans, jars, crates = secret_formula(start(point))
Or it was just a finger-flub
beans, jars, crates = secret_formula(startpoint)
:-)
-tkc
More information about the Python-list
mailing list