SyntaxFix
Write A Post
Hire A Developer
Questions
just use .title(), and it will convert first letter of every word in capital, rest in small:
>>> a='mohs shahid ss' >>> a.title() 'Mohs Shahid Ss' >>> a='TRUE' >>> b=a.title() >>> b 'True' >>> eval(b) True