Answer:
Use the .find() function in your first string to give you an index.
Step-by-step explanation:
Hi! I'm guessing you're taking COP2334 like me. A T.A. helped me figure out what I needed, so I'm passing it on.
Basically, you're given three strings and no integer to use as an index in order to insert the second line. Since you are required to have an index to use the .insert() function, this is "tear-out-my-hair" frustrating. What I failed to remember was that it is totally possible to use a function inside another function to get what you need!
You have been given is a hint as to where str2 goes, in the form of your 3rd string. If I'm right, all of the tests the system will run (mine is in Zybooks) will give a 3rd string that is inside the first string.
String 1: strVar: "FuzzyBear"
String 2: str2: "Wuzzy"
String 3: partStr "Be"
Open your statement with strVar and use the insert.() function. In the insert function, you are required to give a place to start, (your index), then what you want to insert. Your index will be the .find() function, searching in StrVar for partStr. The second part of the .insert() function is str2.
Hope that helps!