Python: Finding a string within a string -
I have two criteria, both the string, and I have to find that string where the second string gets in the first string. I can do this when it is only one character, but when it does not have more of an example here I can:
for calculation (primary): if i What I tried for this problem: for the category I (0, Lane (initial) , 1): boundary for g (lane (initial), i, -1): if the initial [i: j] == last: index_str = i break
However, it is always Gives "no" so that no matter Sector can help with?
I think you need index () method Example usage (taken from)
str1 = "This string example is .... wow !!!"; Str2 = "test"; Print str1.index (str2);
Comments
Post a Comment