Create a Python program to check if a string ends with a given substring.
s = 'Hello World', substring = 'ld'
def endswith(s, substring): 
    return s.endswith(substring) 


s = 'Hello World'
substring = 'ld'
print(endswith(s, substring)) # prints True