Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #26547 > unrolled thread
| Started by | John Mordecai Dildy <jdildy85@gmail.com> |
|---|---|
| First post | 2012-08-05 12:29 -0700 |
| Last post | 2012-08-07 07:09 -0700 |
| Articles | 20 on this page of 49 — 21 participants |
Back to article view | Back to comp.lang.python
Intermediate Python user needed help John Mordecai Dildy <jdildy85@gmail.com> - 2012-08-05 12:29 -0700
Re: Intermediate Python user needed help John Ladasky <john_ladasky@sbcglobal.net> - 2012-08-05 12:34 -0700
Re: Intermediate Python user needed help John Mordecai Dildy <jdildy85@gmail.com> - 2012-08-05 12:44 -0700
Re: Intermediate Python user needed help John Mordecai Dildy <jdildy85@gmail.com> - 2012-08-05 12:51 -0700
Re: Intermediate Python user needed help Andrew Berg <bahamutzero8825@gmail.com> - 2012-08-05 15:09 -0500
Re: Intermediate Python user needed help xDog Walker <thudfoo@gmail.com> - 2012-08-05 13:15 -0700
Re: Intermediate Python user needed help Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-08-05 20:24 +0000
Re: Intermediate Python user needed help John Mordecai Dildy <jdildy85@gmail.com> - 2012-08-05 13:31 -0700
Re: Intermediate Python user needed help John Mordecai Dildy <jdildy85@gmail.com> - 2012-08-05 13:16 -0700
Re: Intermediate Python user needed help John Mordecai Dildy <jdildy85@gmail.com> - 2012-08-05 13:17 -0700
Re: Intermediate Python user needed help John Mordecai Dildy <jdildy85@gmail.com> - 2012-08-05 13:19 -0700
Re: Intermediate Python user needed help John Mordecai Dildy <jdildy85@gmail.com> - 2012-08-05 13:52 -0700
Re: Intermediate Python user needed help Roy Smith <roy@panix.com> - 2012-08-05 17:01 -0400
Re: Intermediate Python user needed help Tim Chase <python.list@tim.thechases.com> - 2012-08-05 16:03 -0500
Re: Intermediate Python user needed help John Mordecai Dildy <jdildy85@gmail.com> - 2012-08-05 14:09 -0700
Re: Intermediate Python user needed help Roy Smith <roy@panix.com> - 2012-08-05 17:32 -0400
Re: Intermediate Python user needed help Mark Lawrence <breamoreboy@yahoo.co.uk> - 2012-08-05 23:15 +0100
Re: Intermediate Python user needed help Tim Chase <python.list@tim.thechases.com> - 2012-08-05 18:27 -0500
Re: Intermediate Python user needed help Vlastimil Brom <vlastimil.brom@gmail.com> - 2012-08-05 23:06 +0200
Re: Intermediate Python user needed help Zero Piraeus <schesis@gmail.com> - 2012-08-05 17:07 -0400
Re: Intermediate Python user needed help MRAB <python@mrabarnett.plus.com> - 2012-08-05 22:08 +0100
Re: Intermediate Python user needed help MRAB <python@mrabarnett.plus.com> - 2012-08-05 22:12 +0100
Re: Intermediate Python user needed help John Mordecai Dildy <jdildy85@gmail.com> - 2012-08-05 14:14 -0700
Re: Intermediate Python user needed help alex23 <wuwei23@gmail.com> - 2012-08-05 19:49 -0700
Re: Intermediate Python user needed help John Mordecai Dildy <jdildy85@gmail.com> - 2012-08-05 14:14 -0700
Re: Intermediate Python user needed help "William R. Wing" <wrw@mac.com> (Bill Wing) - 2012-08-05 19:38 -0400
Re: Intermediate Python user needed help Andre Ramaciotti <andre@ramaciotti.com> - 2012-08-05 18:22 -0300
Re: Intermediate Python user needed help John Mordecai Dildy <jdildy85@gmail.com> - 2012-08-05 15:00 -0700
Re: Intermediate Python user needed help John Mordecai Dildy <jdildy85@gmail.com> - 2012-08-05 15:00 -0700
Re: Intermediate Python user needed help Mark Lawrence <breamoreboy@yahoo.co.uk> - 2012-08-05 23:17 +0100
Re: Intermediate Python user needed help Tim Chase <python.list@tim.thechases.com> - 2012-08-05 18:19 -0500
Re: Intermediate Python user needed help Roy Smith <roy@panix.com> - 2012-08-05 19:32 -0400
Re: Intermediate Python user needed help Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2012-08-05 21:15 -0400
Re: Intermediate Python user needed help Tim Chase <python.list@tim.thechases.com> - 2012-08-05 20:27 -0500
Re: Intermediate Python user needed help Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-08-06 00:42 +0000
Re: Intermediate Python user needed help Jugurtha Hadjar <jugurtha.hadjar@gmail.com> - 2012-08-07 04:06 +0100
Re: Intermediate Python user needed help rusi <rustompmody@gmail.com> - 2012-08-06 20:52 -0700
Re: Intermediate Python user needed help Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2012-08-07 12:27 -0400
Re: Intermediate Python user needed help John Mordecai Dildy <jdildy85@gmail.com> - 2012-08-05 15:39 -0700
Re: Intermediate Python user needed help Ethan Furman <ethan@stoneleaf.us> - 2012-08-06 09:05 -0700
Re: Intermediate Python user needed help Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-08-07 01:16 +0000
Re: Intermediate Python user needed help rusi <rustompmody@gmail.com> - 2012-08-06 20:55 -0700
Re: Intermediate Python user needed help Alec Taylor <alec.taylor6@gmail.com> - 2012-08-07 02:13 +1000
Re: Intermediate Python user needed help Jean-Michel Pichavant <jeanmichel@sequans.com> - 2012-08-06 19:05 +0200
Re: Intermediate Python user needed help Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2012-08-06 15:22 -0400
Re: Intermediate Python user needed help Chris Angelico <rosuav@gmail.com> - 2012-08-07 07:59 +1000
Re: Intermediate Python user needed help Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2012-08-06 23:39 -0400
Re: Intermediate Python user needed help John Mordecai Dildy <jdildy85@gmail.com> - 2012-08-07 07:09 -0700
Re: Intermediate Python user needed help John Mordecai Dildy <jdildy85@gmail.com> - 2012-08-07 07:09 -0700
Page 1 of 3 [1] 2 3 Next page →
| From | John Mordecai Dildy <jdildy85@gmail.com> |
|---|---|
| Date | 2012-08-05 12:29 -0700 |
| Subject | Intermediate Python user needed help |
| Message-ID | <a0e88106-affb-4f7c-8b13-de341ce0f319@googlegroups.com> |
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
Please help me
Email me at Jdildy85@gmail.com if you have any help for me
[toc] | [next] | [standalone]
| From | John Ladasky <john_ladasky@sbcglobal.net> |
|---|---|
| Date | 2012-08-05 12:34 -0700 |
| Message-ID | <acc5605f-8b77-473b-990f-ea0eac6d3d3e@googlegroups.com> |
| In reply to | #26547 |
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.
[toc] | [prev] | [next] | [standalone]
| From | John Mordecai Dildy <jdildy85@gmail.com> |
|---|---|
| Date | 2012-08-05 12:44 -0700 |
| Message-ID | <6fcd2078-8ceb-4b6f-99f7-44f604a97bd4@googlegroups.com> |
| In reply to | #26547 |
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
[toc] | [prev] | [next] | [standalone]
| From | John Mordecai Dildy <jdildy85@gmail.com> |
|---|---|
| Date | 2012-08-05 12:51 -0700 |
| Message-ID | <566c9ebc-5d93-4b5f-94c3-d5710bc01583@googlegroups.com> |
| In reply to | #26547 |
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):
"""This function will break up words for us."""
words = stuff.split(' ')
return words
def sort_words(words):
"""Sorts the words."""
return sorted(words)
def print_first_word(words):
"""Prints the first word after popping it off."""
word = words.pop(0)
print word
def print_last_word(words):
"""Prints the last word after popping it off."""
word = words.pop(-1)
print word
def sort_sentence(sentence):
"""Takes in a full sentence and returns the sorted words."""
words = break_words(sentence)
return sort_words(words)
def print_first_and_last(sentence):
"""Prints the first and last words of the sentence."""
words = break_words(sentence)
print_first_word(words)
print_last_word(words)
def print_first_and_last_sorted(sentence):
"""Sorts the words then prints the first and last one."""
words = sort_sentence(sentence)
print_first_word(words)
print_last_word(words)
print "Let's practice everything."
print 'You\'d need to know \'bout escapes with \\ that do \n newlines and \t tabs.'
poem = """
\tThe lovely world
with logic so firmly planted
cannot discern \n the needs of love
nor comprehend passion from intuition
and requires an explantion
\n\t\twhere there is none.
"""
print "--------------"
print poem
print "--------------"
five = 10 - 2 + 3 - 5
print "This should be five: %s" % five
def secret_formula(started):
jelly_beans = started * 500
jars = jelly_beans / 1000
crates = jars / 100
return jelly_beans, jars, crates
start_point = 10000
beans, jars, crates == secret_formula(start-point)
print "With a starting point of: %d" % start_point
print "We'd have %d jeans, %d jars, and %d crates." % (beans, jars, crates)
start_point = start_point / 10
print "We can also do that this way:"
print "We'd have %d beans, %d jars, and %d crabapples." % secret_formula(start_pont
sentence = "All good things come to those who wait."
words = ex25.break_words(sentence)
sorted_words = ex25.sort_words(words)
print_first_word(words)
print_last_word(words)
.print_first_word(sorted_words)
print_last_word(sorted_words)
sorted_words = ex25.sort_sentence(sentence)
prin sorted_words
print_irst_and_last(sentence)
print_first_a_last_sorted(senence)
Thank you in advance to anyone that can help me with this code
[toc] | [prev] | [next] | [standalone]
| From | Andrew Berg <bahamutzero8825@gmail.com> |
|---|---|
| Date | 2012-08-05 15:09 -0500 |
| Message-ID | <mailman.2970.1344197423.4697.python-list@python.org> |
| In reply to | #26551 |
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 will make this line raise an error. You should use an IDE or something to highlight syntax errors. -- CPython 3.3.0b1 | Windows NT 6.1.7601.17803
[toc] | [prev] | [next] | [standalone]
| From | xDog Walker <thudfoo@gmail.com> |
|---|---|
| Date | 2012-08-05 13:15 -0700 |
| Message-ID | <mailman.2971.1344197737.4697.python-list@python.org> |
| In reply to | #26551 |
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.
[toc] | [prev] | [next] | [standalone]
| From | Steven D'Aprano <steve+comp.lang.python@pearwood.info> |
|---|---|
| Date | 2012-08-05 20:24 +0000 |
| Message-ID | <501ed68c$0$29978$c3e8da3$5496439d@news.astraweb.com> |
| In reply to | #26551 |
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 the hope that syntax errors will just go away is not the right way to fix broken code. Even if you succeed, since you don't know what you did to fix it, how do you know that your next change won't break it again? Almost always, when you have a mysterious syntax error on a line that appears to be perfectly fine, the reason is a missing bracket of some sort on a previous line. (For Americans, I mean parentheses, brackets or braces; for Britons and Australians, round square or curly brackets; for everyone else, whatever you call them.) -- Steven
[toc] | [prev] | [next] | [standalone]
| From | John Mordecai Dildy <jdildy85@gmail.com> |
|---|---|
| Date | 2012-08-05 13:31 -0700 |
| Message-ID | <8df16187-8ca5-4be8-a9f9-6e121aaad96d@googlegroups.com> |
| In reply to | #26557 |
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 the problem could be fixed by deleting *spaces*? > > > > In general, making random changes to code in the hope that syntax errors > > will just go away is not the right way to fix broken code. Even if you > > succeed, since you don't know what you did to fix it, how do you know > > that your next change won't break it again? > > > > Almost always, when you have a mysterious syntax error on a line that > > appears to be perfectly fine, the reason is a missing bracket of some > > sort on a previous line. (For Americans, I mean parentheses, brackets or > > braces; for Britons and Australians, round square or curly brackets; for > > everyone else, whatever you call them.) > > > > > > -- > > Steven Well i have put the spaces back into the code after i did that and had no hope it worked though. thank you steven for giving me some input
[toc] | [prev] | [next] | [standalone]
| From | John Mordecai Dildy <jdildy85@gmail.com> |
|---|---|
| Date | 2012-08-05 13:16 -0700 |
| Message-ID | <2977cceb-17d8-408f-8e4e-1aa47060350c@googlegroups.com> |
| In reply to | #26547 |
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
[toc] | [prev] | [next] | [standalone]
| From | John Mordecai Dildy <jdildy85@gmail.com> |
|---|---|
| Date | 2012-08-05 13:17 -0700 |
| Message-ID | <105114b5-e09f-4aaa-aed8-d45a6b099a29@googlegroups.com> |
| In reply to | #26554 |
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
[toc] | [prev] | [next] | [standalone]
| From | John Mordecai Dildy <jdildy85@gmail.com> |
|---|---|
| Date | 2012-08-05 13:19 -0700 |
| Message-ID | <93e8e878-f0cf-4d20-bb35-d3c302561639@googlegroups.com> |
| In reply to | #26547 |
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).
[toc] | [prev] | [next] | [standalone]
| From | John Mordecai Dildy <jdildy85@gmail.com> |
|---|---|
| Date | 2012-08-05 13:52 -0700 |
| Message-ID | <506eb405-eb07-4175-9efb-40475cabacf1@googlegroups.com> |
| In reply to | #26547 |
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
[toc] | [prev] | [next] | [standalone]
| From | Roy Smith <roy@panix.com> |
|---|---|
| Date | 2012-08-05 17:01 -0400 |
| Message-ID | <roy-01209B.17012005082012@news.panix.com> |
| In reply to | #26559 |
In article <506eb405-eb07-4175-9efb-40475cabacf1@googlegroups.com>, John Mordecai Dildy <jdildy85@gmail.com> 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 You gotta give us more to go on than that. Adding a line: start = 0 right before line 66 will make it defined, but it's almost certainly not what you want. Give us a little context. What value did you expect start would have?
[toc] | [prev] | [next] | [standalone]
| From | Tim Chase <python.list@tim.thechases.com> |
|---|---|
| Date | 2012-08-05 16:03 -0500 |
| Message-ID | <mailman.2972.1344200565.4697.python-list@python.org> |
| In reply to | #26559 |
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. 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. -tkc
[toc] | [prev] | [next] | [standalone]
| From | John Mordecai Dildy <jdildy85@gmail.com> |
|---|---|
| Date | 2012-08-05 14:09 -0700 |
| Message-ID | <516d59a7-425b-4b96-82b2-b1f634f089c7@googlegroups.com> |
| In reply to | #26561 |
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", 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. > > > > 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. > > > > -tkc
[toc] | [prev] | [next] | [standalone]
| From | Roy Smith <roy@panix.com> |
|---|---|
| Date | 2012-08-05 17:32 -0400 |
| Message-ID | <roy-3197A9.17322605082012@news.panix.com> |
| In reply to | #26561 |
In article <mailman.2972.1344200565.4697.python-list@python.org>,
Tim Chase <python.list@tim.thechases.com> 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.
>
> 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.
[toc] | [prev] | [next] | [standalone]
| From | Mark Lawrence <breamoreboy@yahoo.co.uk> |
|---|---|
| Date | 2012-08-05 23:15 +0100 |
| Message-ID | <mailman.2981.1344204893.4697.python-list@python.org> |
| In reply to | #26570 |
On 05/08/2012 22:32, Roy Smith wrote: > In article <mailman.2972.1344200565.4697.python-list@python.org>, > Tim Chase <python.list@tim.thechases.com> 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. >> >> 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. > Like it, marks out of 10, 15 :) -- Cheers. Mark Lawrence.
[toc] | [prev] | [next] | [standalone]
| From | Tim Chase <python.list@tim.thechases.com> |
|---|---|
| Date | 2012-08-05 18:27 -0500 |
| Message-ID | <mailman.2985.1344209195.4697.python-list@python.org> |
| In reply to | #26570 |
On 08/05/12 16:32, Roy Smith wrote: > Tim Chase <python.list@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
[toc] | [prev] | [next] | [standalone]
| From | Vlastimil Brom <vlastimil.brom@gmail.com> |
|---|---|
| Date | 2012-08-05 23:06 +0200 |
| Message-ID | <mailman.2973.1344200811.4697.python-list@python.org> |
| In reply to | #26559 |
2012/8/5 John Mordecai Dildy <jdildy85@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
[toc] | [prev] | [next] | [standalone]
| From | Zero Piraeus <schesis@gmail.com> |
|---|---|
| Date | 2012-08-05 17:07 -0400 |
| Message-ID | <mailman.2974.1344200886.4697.python-list@python.org> |
| In reply to | #26559 |
: On 5 August 2012 16:52, John Mordecai Dildy <jdildy85@gmail.com> 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 I think you could help yourself by reading a good tutorial or two ... so far, the problems you've raised suggest quite strongly that you either aren't reading the code with anything like the care that you need to, or just don't understand Python at all. Hint: if the offending line were written like this, would it be more obvious what's wrong? beans, jars, crates = secret_formula(start - point) -[]z.
[toc] | [prev] | [next] | [standalone]
Page 1 of 3 [1] 2 3 Next page →
Back to top | Article view | comp.lang.python
csiph-web