How do I check if a given Python string is a substring of another one? [duplicate] May 19, 2023 by Tarik Try using in like this: >>> x = 'hello' >>> y = 'll' >>> y in x True