I'm creating a function for a game which includes a board and words. I have designed this function and I don't really know if I could use a loop or a list method to run it correctly. This is the function I am creating:
def make_str_from_column(board, column_index):
""" (list of list of str, int) -> str
Return the characters from the column of the board with index column_index
as a single string.
>>> make_str_from_column([['A', 'N', 'T', 'T'], ['X', 'S', 'O', 'B']], 1)
'NS'
"""