[Tutor] Getting a binary value from a file

2007-11-28 Thread Chuk Goodin
Okay, I actually can load the value fine, but then I'm not sure how to do anything with it. I have a file full of "integers". If I get a file handle (e.g. file1) and then read something in, I get back some hex value. How can I go on to use that in my program? For example, in interactive mode, fil

[Tutor] Nested list access?

2007-10-08 Thread Chuk Goodin
I've got a bit of code here that's giving me some trouble. I am trying to make a 2 dimensional array with nested lists, but when I try to change one element, it changes all the elements in that "column". --begin code-- width = 7 depth = 6 board = [['.']*width]*depth def printBoard(board): 'Pr