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