endswith() Method in Python

https://docs.vultr.com/python/standard-library/str/endswith

 

endswith() Method in Python
The endswith() method in Python is used to check if a string (such as a filename or URL) ends with a specific suffix. It returns True if the string ends with the given suffix; otherwise, it returns False

 

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top