[Tutor] File IO

Amadeo Bellotti amadeo.bellotti at gmail.com
Wed Aug 30 22:42:02 CEST 2006


the code is way to long but i can post the output of puzzleanswers

Answer:
6 1 4 2 9 3 8 5 7
8 5 9 1 6 7 2 3 4
2 3 7 8 5 4 9 1 6
7 8 6 9 1 2 5 4 3
4 2 1 3 7 5 6 9 8
3 9 5 4 8 6 1 7 2
9 4 3 5 2 8 7 6 1
5 6 8 7 4 1 3 2 9
1 7 2 6 3 9 4 8 5

for those of you who dont know its a sudoku puzzle if you guys want i can
attach the .py file.

On 8/30/06, Alan Gauld <alan.gauld at freenet.co.uk> wrote:
>
> >> How do you know? Where are you looking for the file?
> >> Are you sure its not a Path issue?
>
> > no no the file shows up in the same directory as the .py file and i
> > no it
> > works cause i read the text file
>
> OK, In that case can you show us what puzzleanswers looks like?
>
> >> > On 8/29/06, Kent Johnson <kent37 at tds.net> wrote:
> >> >> I would
> >> >> print filename
> >> >> print puzzleanswers
> >> >>
> >> >> to make sure you know what should happen.
>
> Also, if the code is not too long can you post it too?
>
> Alan G.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20060830/2f6c869c/attachment.html 


More information about the Tutor mailing list