Question: Redefine the string named messaging below by replacing all occurrences of the Alice with Bob and vice - versa. ( So , your output should

Redefine the string named messaging below by replacing all occurrences of the Alice with Bob and vice-versa. (So, your output should be Bob messaged Alice, but Alice didn't recognize Bob's new number.) You must use the replace method.
Hint: When performing many operations to a variable, sometimes it's helpful to see its value after each step. You can simply add print the value between steps. So, in this case, you can add a line
print(messaging)
between steps.
messaging = "Alice messaged Bob, but Bob didn't recognize Alice's new number."
messaging =replace(
print(messaging)

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 Programming Questions!