Run
my_string = "Hello, World!" suffix_to_check = "World!" if my_string.endswith(suffix_to_check): print('Given string ends with specified suffix.') else: print('Given string does NOT end with specified suffix.')
Output