str.endswith (suffix, start, end)
suffix: Suffix is nothing but a string which needs to be checked.
start: Starting position from where suffix is needed to be checked within the string.
end: Ending position from where suffix is needed to be checked within the string.
NOTE. If no start and end indices are specified, then it defaults to 0 and length-1 as the start and end indices, where the end index is not included in our search.
It returns True if string ends with the given suffix otherwise returns False.
False True True True
True True False