J
John Mordecai Dildy
Im using Textwrangler and thats the only text editor that im using just saying for everyone
Lisp certainly does.I believe that Cobol allows "-" in names.
Tim Chase said:"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.
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 a bunch of other possibilities.
since when did we start talking about lisp?
since when did we start talking about lisp?
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)
Tim Chase said:Though not a lisper, the Python tie-in was my reply: Python (among
many other languages) doesn't allow a "-" as a character in
identifiers as you appeared to use it in your code. Unlike HTML,
XML, CSS, and apparently lisp and COBOL (thanks, MRAB, for ripping
open that scab after years of trying to repress those COBOL memories
where identifiers may contain the dash.
-tkc
Though not a lisper, the Python tie-in was my reply: Python (among many
other languages) doesn't allow a "-" as a character in identifiers as
you appeared to use it in your code. Unlike HTML, XML, CSS, and
apparently lisp and COBOL (thanks, MRAB, for ripping open that scab
after years of trying to repress those COBOL memories where
identifiers may contain the dash.
Does BNF count as a language?
It's a meta-language <G>
Im using Textwrangler and thats the only text editor that im using just saying for everyone
John said:I am currently using python 2.6 and am not going to install the newer versions of python and i am looking for people that are still using ver 2.6 in python to help with with the code line:
sentence = "All good things come to those who wait."
then im getting this error message when i dont see the problem with it:
File "ex26.py", line 77
sentence = "All good things come to those who wait."
^
SyntaxError: invalid syntax
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
In your subject line you state that you are an intermediate Python user.
These are not the errors an intermediate user would make, nor the questions
an intermediate user would ask. These are the errors that somebody who
doesn't know Python would make.
Please do not misrepresent yourself. +1
~Ethan~
P.S. The scale I am accustomed to is Novice -> Intermediate -> Advanced ->
Master
Troll -> Novice -> Intermediate -> AdvancedEthan said:~Ethan~
P.S. The scale I am accustomed to is Novice -> Intermediate ->
Advanced -> Master
Are there scales out there that would put these types of questions in
the "intermediate" category?
Are there scales out there that would put these types of questions in
the "intermediate" category?
So am I beginner, intermediate, advanced, expert?
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.