Build own progressbar

I would like to create my own progressbar. I would like to create my own progressbar per epoch. In addition, every 10% should be added a # in the brackets [ ], behind it should then be displayed the percentages. e.g. Epoch 1 [# ] 17%.

Does anyone have an idea how best to do this? For example, in Java I have an array filled with the #, but how do I do this in Python? And how do I write the output to each line? So far it runs on every line.

def train_network(network, train, l_rate, n_epoch, n_outputs):
    for epoch in range(n_epoch):
        #char[] progressBar = new char[10];
        #Arrays.fill(progressBar, ' ');
        for row in  range(train):
            percentage = row * 100 / train;
            # Arrays.fill(progressBar, 0, percentage / 10, '#');
            print("Epoch" + str(epoch) + "[" + '#'  + "]" + str(round(percentage)) + "%")
            #outputs = forward_propagate(network, row)
            #expected = [0 for i in range(n_outputs)]
            #expected[row[-1]] = 1
            #backward_propagate_error(network, expected)
            #update_weights(network, row, l_rate)
            something = 1 + 1

train_network(None, 2454, None, 5, None)

What I want:

# Note: Each epoch should be in a row, that is, epoch 1 should be displayed only once.
Epoch 1: [          ] 5 %
Epoch 1: [#         ] 10 %
Epoch 1: [##        ] 22 %
Epoch 1: [########  ] 75 %
...
Epoch 2: [######### ] 95 %