Intermediate Python user needed help

MRAB python at mrabarnett.plus.com
Sun Aug 5 17:12:52 EDT 2012


On 05/08/2012 22:03, Tim Chase wrote:
> On 08/05/12 15:52, John Mordecai Dildy 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
>
> "start-point" is not a valid identifier as the "-" isn't permitted
> in a variable name.  This is the case for just about every language
> out there.  HTML/XML & CSS are the only languages that come to my
> mind in which the dash is considered a valid part of an identifier.
>
I believe that Cobol allows "-"  in names.




More information about the Python-list mailing list