Write a program which takes a string from the user and replaces all occurrences of ‘b’ with ‘$’.

icon
Related questions
Question

Write a program which takes a string from the user and replaces all occurrences of ‘b’ with ‘$’.

Expert Solution
Step 1

NOTE: As the programming language is not mentioned in the question. So, we have solved this question using the Python programming language.

 

Given,

  • We have to write a program that takes a string from the user and replaces all occurrences of ‘b’ with ‘$’.
steps

Step by step

Solved in 3 steps with 2 images

Blurred answer