def printGrid(grid, wallChar, emptyChar):
    finalstr = ''
    finalstr += '\n'
    for i in range(len(grid[0])):
        for j in range(len(grid)):
            if (grid[j][i] == 1):
                finalstr += wallChar
            else:
                finalstr += emptyChar
        finalstr += '\n'
    finalstr += '\n'
    print(finalstr)
def printGrid(grid, wallChar, emptyChar):
    finalstr = 
    finalstr += '\n'
    for i in range(len(grid[0])):
        for j in range(len(grid)):
            if (grid[j][i] == 1):
                finalstr += wallChar
            else:
                finalstr += emptyChar
        finalstr += '\n'
    finalstr += '\n'
    print(finalstr)