Re: Problem with the "for" loop syntax

2013-06-21 Thread Neil Cerutti
On 2013-06-20, Cameron Simpson wrote: > On 20Jun2013 13:55, Neil Cerutti wrote: >| On 2013-06-20, Joshua Landau wrote: >| > On 20 June 2013 04:11, Cameron Simpson wrote: >| >> Also, opening-and-not-closing a set of brackets is almost the >| >> only way in Python to make this kind of error (synt

Re: Problem with the "for" loop syntax

2013-06-20 Thread Cameron Simpson
On 20Jun2013 13:55, Neil Cerutti wrote: | On 2013-06-20, Joshua Landau wrote: | > On 20 June 2013 04:11, Cameron Simpson wrote: | >> Also, opening-and-not-closing a set of brackets is almost the | >> only way in Python to make this kind of error (syntax at one | >> line, actual mistake far befor

Re: Problem with the "for" loop syntax

2013-06-20 Thread Cameron Simpson
On 20Jun2013 15:33, Oscar Benjamin wrote: | On 20 June 2013 04:11, Cameron Simpson wrote: | > I use vi/vim and it both shows the matching bracket when the cursor | > is on one and also have a keystroke to bounce the curser between | > this bracket and the matching one. | > | > If you suspect you

Re: Problem with the "for" loop syntax

2013-06-20 Thread Chris Angelico
On Thu, Jun 20, 2013 at 11:55 PM, Neil Cerutti wrote: > On 2013-06-20, Joshua Landau wrote: >> On 20 June 2013 04:11, Cameron Simpson wrote: >>> Also, opening-and-not-closing a set of brackets is almost the >>> only way in Python to make this kind of error (syntax at one >>> line, actual mistake

Re: Problem with the "for" loop syntax

2013-06-20 Thread Oscar Benjamin
On 20 June 2013 04:11, Cameron Simpson wrote: > I use vi/vim and it both shows the matching bracket when the cursor > is on one and also have a keystroke to bounce the curser between > this bracket and the matching one. > > If you suspect you failed to close a bracket, one approach is to > go _bel

Re: Problem with the "for" loop syntax

2013-06-20 Thread Neil Cerutti
On 2013-06-20, Joshua Landau wrote: > On 20 June 2013 04:11, Cameron Simpson wrote: >> Also, opening-and-not-closing a set of brackets is almost the >> only way in Python to make this kind of error (syntax at one >> line, actual mistake far before). >> >> See if your editor has a show-the-matchin

Re: Problem with the "for" loop syntax

2013-06-20 Thread Joshua Landau
On 20 June 2013 04:11, Cameron Simpson wrote: > Also, opening-and-not-closing a set of brackets is almost the only > way in Python to make this kind of error (syntax at one line, actual > mistake far before). > > See if your editor has a show-the-matching-bracket mode. > If you suspect you failed

Re: Problem with the "for" loop syntax

2013-06-19 Thread Cameron Simpson
On 20Jun2013 11:09, Chris Angelico wrote: | On Thu, Jun 20, 2013 at 11:02 AM, Arturo B wrote: | > Fixed, the problem was in | > HANGMANPICS | > | > I didn't open the brackets. | > Thank you guys :) | | General debugging tip: Syntax errors are sometimes discovered quite | some way below the actua

Re: Problem with the "for" loop syntax

2013-06-19 Thread Chris Angelico
On Thu, Jun 20, 2013 at 11:02 AM, Arturo B wrote: > Fixed, the problem was in > HANGMANPICS > > I didn't open the brackets. > > Thank you guys :) General debugging tip: Syntax errors are sometimes discovered quite some way below the actual cause. The easiest way to figure out what's the real caus

Re: Problem with the "for" loop syntax

2013-06-19 Thread Arturo B
Fixed, the problem was in HANGMANPICS I didn't open the brackets. Thank you guys :) -- http://mail.python.org/mailman/listinfo/python-list

Re: Problem with the "for" loop syntax

2013-06-19 Thread Arturo B
Sorry, I'm new in here So, if you want to see the complete code I've fixed it: http://www.smipple.net/snippet/a7xrturo/Hangman%21%20%3A%29 And here is the part of code that doesn't work: #The error is marked in the whitespace between letter and in def displayBoard(HANGMANPICS, missedLetters,

Re: Problem with the "for" loop syntax

2013-06-19 Thread Joshua Landau
On 19 June 2013 23:53, Arturo B wrote: > Mmmm > > Ok guys, thank you > > I'm really sure that isn't a weird character, it is a space. > > My Python version is 3.3.2, I've runed this code in Python 2.7.5, but it > stills the same. > > I've done what you said but it doesn't work. > > Please Che

Re: Problem with the "for" loop syntax

2013-06-19 Thread Arturo B
Mmmm Ok guys, thank you I'm really sure that isn't a weird character, it is a space. My Python version is 3.3.2, I've runed this code in Python 2.7.5, but it stills the same. I've done what you said but it doesn't work. Please Check it again here is better explained: http://snipplr.com/v

Re: Problem with the "for" loop syntax

2013-06-19 Thread Ian Kelly
On Wed, Jun 19, 2013 at 3:14 PM, arturo balbuena wrote: > Hello guys... > I´m a begginer in Python, I'm doing a Hangman game, but I'm having trouble > with this blank space. I would be greatful if you help me. :) > > Here's my code: > > http://snipplr.com/view/71581/hangman/ > > When I run the co

Re: Problem with the "for" loop syntax

2013-06-19 Thread John Gordon
In <18f427ef-7a9a-413d-a824-65c9df430...@googlegroups.com> arturo balbuena writes: > Hello guys... > I=B4m a begginer in Python, I'm doing a Hangman game, but I'm having troubl= > e with this blank space. I would be greatful if you help me. :) > Here's my code: > http://snipplr.com/view/71581/

Re: Problem with the "for" loop syntax

2013-06-19 Thread Dave Angel
On 06/19/2013 05:14 PM, arturo balbuena wrote: Hello guys... I´m a begginer in Python, I'm doing a Hangman game, but I'm having trouble with this blank space. I would be greatful if you help me. :) Here's my code: http://snipplr.com/view/71581/hangman/ When I run the code it says: Invalid Syn

Problem with the "for" loop syntax

2013-06-19 Thread arturo balbuena
Hello guys... I´m a begginer in Python, I'm doing a Hangman game, but I'm having trouble with this blank space. I would be greatful if you help me. :) Here's my code: http://snipplr.com/view/71581/hangman/ When I run the code it says: Invalid Syntax and this is the error: http://i.imgur.com/jK