Advertisement
Guest User

FuckCampbellInTheAssWithAHarpoon

a guest
Oct 24th, 2016
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. def createBoard(width, height):
  2. " " " Creates a board of cells " " "
  3. return [createOneRow(width)] * height ### multiplies createOneRow (the width of the row) by the height(how many rows)
  4.  
  5. def createOneRow(x):
  6. zerolist = [0] * x
  7. return zerolist
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement