endswith python does not take a variable as an argument 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