first = 'aaaaabbbbbccccc'
second = 'bbbebcccccddddd'
second_prime = '-' * first.find(second[0]) + second
first_prime = first + '-' * (len(second_prime) - len(first))
print(first_prime + '\n' + second_prime)
Грубое выравнивание строк в python