def robot_paint(grid, painted_locations, current, instruction_list):
    """Makes robot paint given location on grid.  Updates and returns grid, painted_locations. """
    painted_locations.add(current)
    if instruction_list[0] == 0:
        grid[current[0]][current[1]] = '.'
    elif instruction_list[0] == 1:
        grid[current[0]][current[1]] = '#'
    else:
        print('And I oop...robot_paint')

    return grid, painted_locations