demo_ref_string_istitle2.py:
a = "HELLO, AND WELCOME TO MY WORLD" b = "Hello" c = "22 Names" d = "This Is %'!?" print(a.istitle()) print(b.istitle()) print(c.istitle()) print(d.istitle())
➜ begtut>python demo_string_istitle2.py
False
True
True
True