105k views
3 votes
Write an expression that returns True if the str associated with s ends with "ism".

User Flynn
by
7.9k points

1 Answer

5 votes
Using the Python programming language, an expression that returns true if the str associated with s ends with "ism" would be: s.endswith("ism").

This is because in the first place, the aforementioned programming language already contains methods such as endswith and startswith.
User Infixed
by
8.8k points