python find string starting with ending with code example
Example: find starting and ending letter in python/py
word = "hello world"
>>> word.startswith("H")
True
>>> word.endswith("d")
True
>>> word.endswith("w")
False
word = "hello world"
>>> word.startswith("H")
True
>>> word.endswith("d")
True
>>> word.endswith("w")
False