demo_ref_string_ljust2.py:
txt = "banana" x = txt.ljust(20, "O") print(x)
➜ begtut>python demo_string_ljust2.py
bananaOOOOOOOOOOOOOO