How would you check if a string ends with a given substring in Python?
Input String = "Test string"
Substring = "string"
if InputString.endswith(Substring):
    print('The input string ends with the given substring.')
else:
    print('The input string does not end with the given substring.')