Question #86

How to check whether a substring is part of a string?

The in keyword is generally used to check whether an element is part of another one. Under the hood, Python will use the methods __contains__(self, item) , __iter__(self) , and __getitem__(self, key) of the biven substrings and strings objects. (stackoverflow.com/questions/3437059/does-python-have-a-st...)


Comment on Disqus:

Comment on Twitter:

Question difficulty: 🔵🔵🔵🔵🔵