This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from itertools import zip_longest | |
def text_side_by_side(*texts, separator="\t"): | |
max_length = 0 | |
texts_lines = [] | |
for text in texts: | |
# finds the widest one | |
text_lines = text.splitlines() | |
texts_lines.append(text_lines) | |
for line in text_lines: |