demo_ref_string_zfill2.py:
a = "hello" b = "welcome to the jungle" c = "10.000" print(a.zfill(10)) print(b.zfill(10)) print(c.zfill(10))
➜ begtut>python demo_string_zfill2.py
00000hello
welcome to the jungle
000010.000