The str.endswith() function will do this.
For example: yourstring.endswith("sys-yg-ys")
More Related Contents:
- ‘str’ object is not callable Python
- Unexpected returned variable in Python [duplicate]
- How do I get a substring of a string in Python?
- How to read a file line-by-line into a list?
- Convert a Unicode string to a string in Python (containing extra symbols)
- Is there a simple way to remove multiple spaces in a string?
- Check if a string contains a number
- How to correctly sort a string with a number inside? [duplicate]
- How to un-escape a backslash-escaped string?
- How to check if type of a variable is string?
- Why are empty strings returned in split() results?
- Check if string ends with one of the strings from a list
- What is the most efficient string concatenation method in Python?
- How to check if a string only contains letters?
- What is the max length of a Python string?
- str.startswith with a list of strings to test for
- How to split strings inside a list by whitespace characters
- Difference between using commas, concatenation, and string formatters in Python
- How can I extract keywords from a Python format string?
- Python: find closest string (from a list) to another string
- Check presence of vowels in a string
- “TypeError: a bytes-like object is required, not ‘str'” when handling file content in Python 3
- Does R have function startswith or endswith like python? [closed]
- How to get an expression between balanced parentheses
- How to Print “Pretty” String Output in Python
- Parsing json and searching through it
- f.read coming up empty
- How can I check if a string has a numeric value in it in Python? [duplicate]
- How does str.startswith really work?
- Python string operation, extract text between html tags