Python Suffix, To check if a string ends with a specific suffix string in Python, we can use str.