creating new game board def getnewboard() create new board data structure board [ for in range( )the main list is list of lists board append([] new board data structure is needed at the start of each new game the board data structure is list of lists of strings the first list represents the coordinate since the game' board is characters acrossthis first list needs to contain lists create for loop that will append blank lists to it for in range( )each list in the main list has singlecharacter strings use different characters for the ocean to make it more readable if random randint( = board[xappend('~' else board[xappend('`'but board is more than just list of blank lists each of the lists represents an coordinate of the game board there are rows in the boardso each of these lists must have characters in them line is another for loop to add single-character strings that represent the ocean the "oceanwill be bunch of randomly chosen '~and '`strings if the return value of random randint(is add the '~string otherwise add the '`string this will give the ocean randomchoppy look to it remember that the board variable is list of listseach list having strings that means to get the string at coordinate you would access board[ ][ ]and not board[ ][ the coordinate is firstthen the coordinate return board finallythe function returns the value in the board variable creating the random treasure chests def getrandomchests(numchests)post questions to