Python String Endswith() Method

Python String Endswith() Method

  • The endswith( ) method returns True if the string ends with the specified value, otherwise False. 

  • Return type is Boolean.

Syntax

                               string.endswith(value, start, end) 

Parameter

value                            The value to check if the string ends with

start                              An Integer specifying at which position to start the search

end                                An Integer specifying at which position to end the search



 

 

Comments