Re: [Tutor] Creating Sudoku

2008-04-07 Thread Andrei Petre
A good place to look at : http://www.norvig.com/sudoku.html On Mon, Apr 7, 2008 at 6:53 PM, Luke Paireepinart <[EMAIL PROTECTED]> wrote: > W W wrote: > > On 4/7/08, Luke Paireepinart <[EMAIL PROTECTED]> wrote: > > > >> W W wrote: > >> What are you talking about? I don't understand what you mean

Re: [Tutor] crashed with Runtime Error: NZEC (non-zero exit code)

2008-02-27 Thread Andrei Petre
i'm thinking the same way Eric do. On Wed, Feb 27, 2008 at 11:18 PM, Eric Brunson <[EMAIL PROTECTED]> wrote: > Alan Gauld wrote: > > "bob gailer" <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> wrote > > > > i don't really understand that. you are trying to say that the > tests > from the online judge

[Tutor] crashed with Runtime Error: NZEC (non-zero exit code)

2008-02-24 Thread Andrei Petre
Hello, I wrote a code for a problem and submitted to an online judge, a program that runs my program against a set of predefined input data. I wrote it for exercise my python writing. In don't want to discuss the algorithm here! I dare to ask for help because the answer was : crashed with Runtim

[Tutor] read from standard input

2008-02-13 Thread Andrei Petre
Hello, I want to read from the standard input numbers until i reach a certain value or to the end of the "file". What is the simplest, straightforward, pythonic way to do it? a sketch of how i tried to do it: [code] while 1 < 2: x = raw_input() if type(x) != int or x == 11: break

[Tutor] tokenizing a simple string with split()

2007-03-31 Thread Andrei Petre
I want to split a string like "C:\My\Doc\;D:\backup\" with two separators: \ and ; I found that \ is handled with *raw string* notation r"". But the problem i encountered is with split() function. In the 2.5 reference is said that "The sep argument of the split() function may consist of multiple c