Example:
String1 = \"AbBaCca\"; String2 = \"bac\";
I want to perform a check that String1 contains String2 or not.
The most idiomatic way to check this is to use the in operator:
in
String2 in String1
This is equivalent to calling contains(), but shorter and more readable.
contains()