Hacker News new | ask | show | jobs
by Tommstein 1013 days ago
> Actually, in the doc you described as "obviously the correct hit", all I see is

> > str.endswith(suffix[, start[, end]])

> > Return True if the string ends with the specified suffix, otherwise return False. suffix can also be a tuple of suffixes to look for. With optional start, test beginning at that position. With optional end, stop comparing at that position.

What exactly don't you understand from that concise and official documentation?

1 comments

Parent wants a real example not a partial syntax definition
Why not generate a few examples of your own using the REPL?