endswith method

text = 'Hello world'
result = text.endswith('world')

print(result)

Leave a Comment

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