I'm wanting a python function like this:
printSeperated("leftString", "rightString", screenWidth)
That would output:
leftString | rightString
Such that the "|" delimiter is at the midpoint of the screen.
I've tried:
def printSeperated(str1, str2, w = 20):
print(str1.ljust(w), "|".center(w), str2.rjust(w))
But this does not keep the delimiter at the center of the screen