Computer Science, asked by bipint1067, 11 months ago

What do you mean by endswith(suffix, beg=0, end=len(string))

Answers

Answered by laraibmukhtar55
1

endswith(suffix, beg=0, end=len(string)):

• The method endswith( ) returns True if the string ends with the definite suffix, or else return False.

• The syntax is str. endswith (suffix, beg=0 end= len)

• If the start and end index is not delivered then by default it takes 0 and length-1 as early and ending indexes where ending index is not encompassed in our search.

Hope it helped..

Similar questions