Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- gameboard1 = []
- gameboard2 = []
- def make_board(board):
- for x in range(5):
- board.append(["O"] * 5)
- make_board(gameboard1)
- def make_board(*board):
- #the goal was to be able to have a function to make multiple boards at once, without having to do it line by line.
- #Throws error AttributeError: 'tuple' object has no attribute 'append'
- for x in range(5):
- board.append(["O"] * 5)
- make_board(gameboard1, gameboard2)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement