get string that starts and ends with something in python code example
Example: endswith python
str.endswith(suffix[, start[, end]])
text = "Python is easy to learn."
result = text.endswith('to learn') # False
result = text.endswith('to learn.')# True