"WM." <[email protected]> wrote

Well, Mr. Wilkins takes the biscuit. He found where I did not enter a pair of parens.()

But do you understand *why* you got the error and what it was telling you?
Pyton's error message told you exactly what you had done wrong
although you may not have quite understood it. But do you now see
what the error message was telling you when it said:

------------------
  File "C:\Python26\TicTacToeD.py", line 150, in main
    DisplayBoard(board)
  File "C:\Python26\TicTacToeD.py", line 68, in DisplayBoard
    print "\n\t", board[1], "|", board[2], "|", board[3]
TypeError: 'function' object is unsubscriptable
------------------

Can you understand it clearly enough that when a similar error
comes up in future you will know what to look for and where?

--
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/l



_______________________________________________
Tutor maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/tutor

Reply via email to