Skip to content

Instantly share code, notes, and snippets.

@RaMSFT
Created October 20, 2022 07:30
Show Gist options
  • Save RaMSFT/eae8e480d4b98403a705376838fc4190 to your computer and use it in GitHub Desktop.
Save RaMSFT/eae8e480d4b98403a705376838fc4190 to your computer and use it in GitHub Desktop.
def check_title_string(str):
#Check if the the string is title string or using string method
title = str.istitle()
return title
print(check_title_string("A Mind Boggling Achievement"))
print(check_title_string("A Simple Python Program!"))
print(check_title_string("Water is transparent"))
print(check_title_string("Learn From Edabit And Medium"))
print(check_title_string("I love to Program using Python"))
print(check_title_string("This Is Insights And Data"))
print(check_title_string("Love To Learn"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment