# example string
string = 'cat'
width = 5

# print right justified string
print(string.rjust(width))

# example string
string = 'cat'
width = 5
fillchar = '*'

# print right justified string
print(string.rjust(width, fillchar))