<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def replace_col(self, line, ndx):
 """ replace a grids column at index 'ndx' with 'line' """

        for row in range(len(line)):
            self.set_tile(row, ndx, line[row])