Re: Intermediate Python user needed help

2012-08-07 Thread John Mordecai Dildy
On Monday, August 6, 2012 11:39:45 PM UTC-4, Dennis Lee Bieber wrote: > On Tue, 7 Aug 2012 07:59:44 +1000, Chris Angelico > > declaimed the following in gmane.comp.python.general: > > > > > On Tue, Aug 7, 2012 at 5:22 AM, Dennis Lee Bieber > > wrote: > > > > So am I beginner, intermediate,

Re: Intermediate Python user needed help

2012-08-06 Thread rusi
On Aug 7, 8:06 am, Jugurtha Hadjar wrote: > On 08/05/2012 09:52 PM, John Mordecai Dildy wrote: > > > NameError: name 'start' is not defined > > > anyone know how to make start defined > > Maybe rename it "defined_start" ;) > > I wonder how someone can get to the point of writing more than 76 lines

Re: Intermediate Python user needed help

2012-08-06 Thread rusi
On Aug 7, 6:16 am, Steven D'Aprano wrote: > On Mon, 06 Aug 2012 09:05:50 -0700, Ethan Furman wrote: > >   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. > >

Re: Intermediate Python user needed help

2012-08-06 Thread Jugurtha Hadjar
On 08/05/2012 09:52 PM, John Mordecai Dildy wrote: NameError: name 'start' is not defined anyone know how to make start defined Maybe rename it "defined_start" ;) I wonder how someone can get to the point of writing more than 76 lines of code while not only still making this kind of errors,

Re: Intermediate Python user needed help

2012-08-06 Thread Steven D'Aprano
On Mon, 06 Aug 2012 09:05:50 -0700, Ethan Furman wrote: > 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. > P.S. The scale I am accustomed to is Novice -> Int

Re: Intermediate Python user needed help

2012-08-06 Thread Chris Angelico
On Tue, Aug 7, 2012 at 5:22 AM, Dennis Lee Bieber wrote: > So am I beginner, intermediate, advanced, expert? I wonder would this sort of a scale help: http://www.geekcode.com/geek.html#perl Novice: P Intermediate: P+ or P++ Advanced: P+++ Master: P ChrisA -- http://mail.python.org/mailman

Re: Intermediate Python user needed help

2012-08-06 Thread Jean-Michel Pichavant
Ethan Furman wrote: ~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? Troll -> Novice -> Intermediate -> Advanced Trolls are quite specific, they're

Re: Intermediate Python user needed help

2012-08-06 Thread Alec Taylor
On Tue, Aug 7, 2012 at 2:05 AM, Ethan Furman wrote: > John Mordecai Dildy wrote: >> >> 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 =

Re: Intermediate Python user needed help

2012-08-06 Thread Ethan Furman
John Mordecai Dildy wrote: 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 err

Re: Intermediate Python user needed help

2012-08-05 Thread alex23
On Aug 6, 7:14 am, John Mordecai Dildy wrote: > Im using Textwrangler and thats the only text editor that im using just > saying for everyone Why bother using an actual development tool when you can get an entire mailing list to be your syntax checker, right? -- http://mail.python.org/mailman/l

Re: Intermediate Python user needed help

2012-08-05 Thread Tim Chase
On 08/05/12 20:15, Dennis Lee Bieber wrote: > On Sun, 05 Aug 2012 19:32:26 -0400, Roy Smith declaimed >>> 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. Unl

Re: Intermediate Python user needed help

2012-08-05 Thread Steven D'Aprano
On Sun, 05 Aug 2012 18:19:55 -0500, Tim Chase wrote: > On 08/05/12 17:00, John Mordecai Dildy wrote: >> since when did we start talking about lisp? > > 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

Re: Intermediate Python user needed help

2012-08-05 Thread William R. Wing
On Aug 5, 2012, at 5:14 PM, John Mordecai Dildy wrote: > Im using Textwrangler and thats the only text editor that im using just > saying for everyone > -- > http://mail.python.org/mailman/listinfo/python-list (With apologies, I initially sent this privately to John, and not to the list.) As

Re: Intermediate Python user needed help

2012-08-05 Thread Roy Smith
In article , Tim Chase wrote: > On 08/05/12 17:00, John Mordecai Dildy wrote: > > since when did we start talking about lisp? > > 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 us

Re: Intermediate Python user needed help

2012-08-05 Thread Tim Chase
On 08/05/12 16:32, Roy Smith wrote: > Tim Chase 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

Re: Intermediate Python user needed help

2012-08-05 Thread Tim Chase
On 08/05/12 17:00, John Mordecai Dildy wrote: > since when did we start talking about lisp? 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, an

Re: Intermediate Python user needed help

2012-08-05 Thread John Mordecai Dildy
oh -- http://mail.python.org/mailman/listinfo/python-list

Re: Intermediate Python user needed help

2012-08-05 Thread Mark Lawrence
On 05/08/2012 23:00, John Mordecai Dildy wrote: since when did we start talking about lisp? Just about anything is on topic here. -- Cheers. Mark Lawrence. -- http://mail.python.org/mailman/listinfo/python-list

Re: Intermediate Python user needed help

2012-08-05 Thread Mark Lawrence
On 05/08/2012 22:32, Roy Smith wrote: In article , 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 beans, jars, crates = secret_formula(start-point) NameError: name 'start'

Re: Intermediate Python user needed help

2012-08-05 Thread John Mordecai Dildy
since when did we start talking about lisp? -- http://mail.python.org/mailman/listinfo/python-list

Re: Intermediate Python user needed help

2012-08-05 Thread Roy Smith
In article , 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 > > beans, jars, crates = secret_formula(start-point) > > NameError: name 'start' is not defined > >

Re: Intermediate Python user needed help

2012-08-05 Thread Andre Ramaciotti
On 08/05/2012 06:12 PM, MRAB wrote: 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 beans, jars, crates = secret_formula(start-point) NameError: name 'start'

Re: Intermediate Python user needed help

2012-08-05 Thread John Mordecai Dildy
Im using Textwrangler and thats the only text editor that im using just saying for everyone -- http://mail.python.org/mailman/listinfo/python-list

Re: Intermediate Python user needed help

2012-08-05 Thread John Mordecai Dildy
Thanks everyone that has put input into this its working on out error by error On Sunday, August 5, 2012 5:03:50 PM UTC-4, 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"

Re: Intermediate Python user needed help

2012-08-05 Thread MRAB
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 beans, jars, crates = secret_formula(start-point) NameError: name 'start' is not defined anyone know how to ma

Re: Intermediate Python user needed help

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

Re: Intermediate Python user needed help

2012-08-05 Thread MRAB
On 05/08/2012 21:52, John Mordecai Dildy wrote: Current Problem at the moment Traceback (most recent call last): File "ex26.py", line 66, in beans, jars, crates = secret_formula(start-point) NameError: name 'start' is not defined anyone know how to make start defined You have "start-

Re: Intermediate Python user needed help

2012-08-05 Thread Vlastimil Brom
2012/8/5 John Mordecai Dildy : > Current Problem at the moment > > Traceback (most recent call last): > File "ex26.py", line 66, in > beans, jars, crates = secret_formula(start-point) > NameError: name 'start' is not defined > > anyone know how to make start defined > -- > http://mail.python

Re: Intermediate Python user needed help

2012-08-05 Thread Roy Smith
In article <506eb405-eb07-4175-9efb-40475caba...@googlegroups.com>, John Mordecai Dildy wrote: > Current Problem at the moment > > Traceback (most recent call last): > File "ex26.py", line 66, in > beans, jars, crates = secret_formula(start-point) > NameError: name 'start' is not defined

Re: Intermediate Python user needed help

2012-08-05 Thread Tim Chase
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 > beans, jars, crates = secret_formula(start-point) > NameError: name 'start' is not defined > > anyone know how to make start defined "start-

Re: Intermediate Python user needed help

2012-08-05 Thread John Mordecai Dildy
Current Problem at the moment Traceback (most recent call last): File "ex26.py", line 66, in 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

Re: Intermediate Python user needed help

2012-08-05 Thread John Mordecai Dildy
On Sunday, August 5, 2012 4:24:45 PM UTC-4, Steven D'Aprano wrote: > On Sun, 05 Aug 2012 12:51:31 -0700, John Mordecai Dildy wrote: > > > > > Ive tried to delete the spaces in 75 and 76 to see if it made a change > > > but it has not made a difference to it. > > > > What made you think that

Re: Intermediate Python user needed help

2012-08-05 Thread John Mordecai Dildy
File "ex26.py", line 84 .print_first_word(sorted_words) ^ SyntaxError: invalid syntax is what i have now and i dont see the problem like usual (i only post problems that i cant fix). -- http://mail.python.org/mailman/listinfo/python-list

Re: Intermediate Python user needed help

2012-08-05 Thread Steven D'Aprano
On Sun, 05 Aug 2012 12:51:31 -0700, John Mordecai Dildy wrote: > Ive tried to delete the spaces in 75 and 76 to see if it made a change > but it has not made a difference to it. What made you think that the problem could be fixed by deleting *spaces*? In general, making random changes to code in

Re: Intermediate Python user needed help

2012-08-05 Thread John Mordecai Dildy
On Sunday, August 5, 2012 4:16:13 PM UTC-4, John Mordecai Dildy wrote: > well that work on mac though? > > im asking because i see the Windows NT at the bottom of your reply and plus > im using 2.6 python not 3.3 i see the ) problem i have it fixed -- http://mail.python.org/mailman/listinfo/pyt

Re: Intermediate Python user needed help

2012-08-05 Thread John Mordecai Dildy
well that work on mac though? im asking because i see the Windows NT at the bottom of your reply and plus im using 2.6 python not 3.3 -- http://mail.python.org/mailman/listinfo/python-list

Re: Intermediate Python user needed help

2012-08-05 Thread xDog Walker
On Sunday 2012 August 05 12:51, John Mordecai Dildy wrote: > print "We'd have %d beans, %d jars, and %d crabapples." % > secret_formula(start_pont Add a ) to the end of the line quoted above. -- Yonder nor sorghum stenches shut ladle gulls stopper torque wet strainers. -- http://mail.python.

Re: Intermediate Python user needed help

2012-08-05 Thread Andrew Berg
On 8/5/2012 2:51 PM, John Mordecai Dildy wrote: > print "We'd have %d beans, %d jars, and %d crabapples." % > secret_formula(start_pont > sentence = "All good things come to those who wait." You are missing a parenthesis at the end of the previous line. > .print_first_word(sorted_words) That dot

Re: Intermediate Python user needed help

2012-08-05 Thread John Mordecai Dildy
Ive tried to delete the spaces in 75 and 76 to see if it made a change but it has not made a difference to it. Here is the full code and the thing is i know there is things wrong with it but the thing is im fixing a code for a friend to help him getting with the coding: def break_words(stuff)

Re: Intermediate Python user needed help

2012-08-05 Thread John Mordecai Dildy
Well 75 and 76 is a blank line of text but i will see if i can take out those lines to see if it is the problem thanks John -- http://mail.python.org/mailman/listinfo/python-list

Re: Intermediate Python user needed help

2012-08-05 Thread John Ladasky
Check line 76 of your code for errors. If line 76 is incorrectly formed, Python may see line 77 as a continuation of line 76 and throw the SyntaxError because of that. -- http://mail.python.org/mailman/listinfo/python-list

Intermediate Python user needed help

2012-08-05 Thread John Mordecai Dildy
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 th