def print_box(text):
    line0 = "+" + ("-"*(len(text)+2)) + "+"
    line1 = "| " + text + " |"
    print(("\n\n" + "\n".join([line0, line1, line0]) + "\n"))
Print text in a box
dataset/ETHPy150Open winpython/winpython/winpython/utils.py/print_box