Question: CHALLENGE ACTIVITY 7 . 3 . 1 : String methods. 5 6 7 4 6 8 . 3 9 4 6 9 8 8 .

CHALLENGE
ACTIVITY
7.3.1: String methods.
567468.3946988.q3zqy?
Jump to level 1
1
String string_data is read from input. If 'w' is in string_data, then:
2
Output 'At index: ' followed by the index of the last occurrence.
Create a string from string_data with the first two occurrences of 'w' replaced by '1' and output string_data on a newline.
3
Otherwise, output 'No matches'.
4
grad Click here for example
Ex: If the input is gv wwr x w, then the output is:
At index: 9
g v 11rx w
1 string_data = input()
3|''' Your code goes here
4
 CHALLENGE ACTIVITY 7.3.1: String methods. 567468.3946988.q3zqy? Jump to level 1 1

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!