istitle() Function in Python – Check for proper case or title case

istitle() Function in python checks whether the string consists of title case or proper case only. lets see an example of python istitle() Function


Syntax for istitle() Function in Python:


Returns true if only title case or proper case is found else returns false.


Example of istitle() Function in python:

str1 = " 2018 Is At Doorstep"; 
print str1.istitle()

str1="Beauty of DEMOCRACY"
print str1.istitle()

so the output will be




previous istitle() Function in python                                                                                                           next istitle() Function in python

Do NOT follow this link or you will be banned from the site!