demo_ref_string_title3.py:
txt = "hello b2b2b2 and 3g3g3g" x = txt.title() print(x)
➜ begtut>python demo_string_title3.py
Hello B2B2B2 And 3G3G3G