Python- how to verify if a string ends with specific string?

The str.endswith() function will do this.
For example: yourstring.endswith("sys-yg-ys")

Leave a Comment