Ad
  • Custom User Avatar

    what happens when the substring is in the start of the string, i.e what will be the index of the substring in this case?

    (hint: only one character has to be added to this line if s2.find(s1)>0: