I have the following string for example: \' 24499 ? 00:02:05 sys-yg-ys\'
24499 ? 00:02:05 sys-yg-ys\'
How can I verify if the string ends with a string which I got from a
The str.endswith() function will do this. For example: yourstring.endswith("sys-yg-ys")
yourstring.endswith("sys-yg-ys")