s = 'test' padded_s = s.rjust(10, '0') print(padded_s)