Answer :

Endswith (substring) method would be used to determine whether a certain substring is the suffix of a string.

What is a string in reference to computer programming?

In computer programming, a string is often regarded as a collection of characters, either as a literal constant or as a kind of variable. The latter can either allow its elements to change or keep their length fixed (after creation). An array data structure of bytes (or words) that holds a series of components, often characters, using some character encoding is commonly used to represent a string. A string is typically regarded as a type of data.

Depending on the programming language and particular data type employed, a variable declared to be a string may either enable memory storage to be statically allocated for a defined maximum length or leverage dynamic allocation to allow it to carry a variable number of elements.

To know more about, strings, visit :

https://brainly.com/question/20298192

#SPJ4