Question: CHALLENGE ACTIVITY 8.2.1: String methods. 54106239375184times 32947 String replacement is read from input. Then, tongue_twister is read from input. If replacement is in tongue_twister,
CHALLENGE\ ACTIVITY\ 8.2.1: String methods.\
54106239375184\\\\times 32947\ String replacement is read from input. Then, tongue_twister is read from input. If replacement is in tongue_twister, then:\ Output 'At position: ' followed by the index of the first occurrence.\ Create a string from tongue_twister with the first occurrence of replacement replaced by ' 3 ' and output tongue_twister on a newline.\ Otherwise, output 'None found'.\ Click here for example\ replacement
=input ()\ tongue_twister
=input ()\ l' '' Your code goes here

String replacement is read from input. Then, tongue_twister is read from input. If replacement is in tongue_twister, then: - Output 'At position: 'followed by the index of the first occurrence. - Create a string from tongue_twister with the first occurrence of replacement replaced by ' 3 ' and output tongue_twister on a newline. Otherwise, output 'None found'. Click here for example replacement = input () tongue_twister = input () I' Your code goes here
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
