I'm trying to make a wordsearch for a school project and have hit a snag. I am using a class with functions for the board. Here is my code:
class Board:
def __init__(self,size=20):
self.board = [['']*size]*size
self.board[0][0] = 'A'
self.words = ['lorem', 'ipsum', 'dolor', 'sit', 'amet',\
'consectetur', 'adipiscing', 'elit', 'quisque',\
'in', 'augue', 'sit', 'amet', 'est', 'ullamcorper',\
'bibendum', 'sed', 'at', 'arcu', 'nullam']
self.clues = self.words
board = Board()
print ''.join(board.board[0])
print ''.join(board.board[1])
Instead of printing out the expected ('' = nothing)
A
''
It prints out
A
A
What am I doing wrong?