Re: Problem with the for loop syntax

2013-06-21 Thread Neil Cerutti
On 2013-06-20, Cameron Simpson c...@zip.com.au wrote: On 20Jun2013 13:55, Neil Cerutti ne...@norwich.edu wrote: | On 2013-06-20, Joshua Landau joshua.landau...@gmail.com wrote: | On 20 June 2013 04:11, Cameron Simpson c...@zip.com.au wrote: | Also, opening-and-not-closing a set of brackets is

Re: Problem with the for loop syntax

2013-06-20 Thread Joshua Landau
On 20 June 2013 04:11, Cameron Simpson c...@zip.com.au 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. snip If you

Re: Problem with the for loop syntax

2013-06-20 Thread Neil Cerutti
On 2013-06-20, Joshua Landau joshua.landau...@gmail.com wrote: On 20 June 2013 04:11, Cameron Simpson c...@zip.com.au 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

Re: Problem with the for loop syntax

2013-06-20 Thread Oscar Benjamin
On 20 June 2013 04:11, Cameron Simpson c...@zip.com.au 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

Re: Problem with the for loop syntax

2013-06-20 Thread Chris Angelico
On Thu, Jun 20, 2013 at 11:55 PM, Neil Cerutti ne...@norwich.edu wrote: On 2013-06-20, Joshua Landau joshua.landau...@gmail.com wrote: On 20 June 2013 04:11, Cameron Simpson c...@zip.com.au wrote: Also, opening-and-not-closing a set of brackets is almost the only way in Python to make this

Re: Problem with the for loop syntax

2013-06-20 Thread Cameron Simpson
On 20Jun2013 15:33, Oscar Benjamin oscar.j.benja...@gmail.com wrote: | On 20 June 2013 04:11, Cameron Simpson c...@zip.com.au 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

Re: Problem with the for loop syntax

2013-06-20 Thread Cameron Simpson
On 20Jun2013 13:55, Neil Cerutti ne...@norwich.edu wrote: | On 2013-06-20, Joshua Landau joshua.landau...@gmail.com wrote: | On 20 June 2013 04:11, Cameron Simpson c...@zip.com.au wrote: | Also, opening-and-not-closing a set of brackets is almost the | only way in Python to make this kind of

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

Re: Problem with the for loop syntax

2013-06-19 Thread John Gordon
In 18f427ef-7a9a-413d-a824-65c9df430...@googlegroups.com arturo balbuena a7xrturo...@gmail.com 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:

Re: Problem with the for loop syntax

2013-06-19 Thread Ian Kelly
On Wed, Jun 19, 2013 at 3:14 PM, arturo balbuena a7xrturo...@gmail.com 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

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:

Re: Problem with the for loop syntax

2013-06-19 Thread Joshua Landau
On 19 June 2013 23:53, Arturo B a7xrturo...@gmail.com 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.

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 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 Chris Angelico
On Thu, Jun 20, 2013 at 11:02 AM, Arturo B a7xrturo...@gmail.com 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

Re: Problem with the for loop syntax

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