Following is a code to draw a tic tac toe board in python.
def draw_board():
    v = '|    |    |    |'
    h = ' ____ ____ ____ '
    for i in range(0,10):
        if i%3==0:
            print(h)
        else:
            print(v)
draw_board()
Hope this will help!
To learn more, go for Python Master course today.
Thank!