String Methods
1. Commonly Used String Methods –
dist = "I am very happy"
print(dist) # Original string
print(type(dist)) # Type of variable
print(len(dist)) # Total characters (including spaces)
print([Link]()) # All uppercase
print([Link]()) # All lowercase
print([Link]()) # First character capital
print([Link]()) # Title case
print([Link]()) # Checks if all lowercase
print([Link]()) # Checks if all uppercase
print([Link]()) # Checks if title case
print([Link]()) # Checks if all numeric
print([Link]()) # Only alphabets, no spaces
print([Link]()) # Alphabets + Numbers only (no spaces/symbols)
print([Link]()) # Only whitespace
print([Link]('a')) # First occurrence of 'a'
print([Link]('y')) # Last occurrence of 'y'
print([Link]('e')) # Count of 'e'