python check if first character is capital code example
Example 1: how to capitalize first letter in python
# To capitalize the first letter in a word or each word in a sentence use .title()
name = tejas naik
print(name.title()) # output = Tejas Naik
Example 2: python method to check for uppercase character
a="DEMO"
print(a.isupper())