by Albert Major
' ') or double (" ") quotes..) notation.
a.lower() (method) vs len(a) (function).len(a): Returns the length of the string.a.lower(): Converts the string to lowercase.a.upper(): Converts the string to uppercase.a.strip(): Removes spaces, newlines, and tabs from both ends of the string.a.replace("old", "new"): Replaces all occurrences of "old" with "new".String methods don’t change the original string.
Example:
a = " hello "
print(a.strip()) # "hello"
print(a) # " hello " (Original remains unchanged)