rjust() - Returns a right justified version of the string

Right justifies a string, left-padding with the specified character or substring to the specified width.

Example

Python
print('ABC'.rjust(20, '-'))

Output

-----------------ABC