def CenterText(PrintVar): TerminalSize = shutil.get_terminal_size() Columns = TerminalSize[0] Rows = TerminalSize[1] StringLen = len(PrintVar) Center