Saved Bookmarks
| 1. |
Write a program to replace a string with another string without using replace ( )? |
|
Answer» s1 = input (“Enter the string to be replaced: “) s2 = input (“Enter the string to replace with “) s1 = s2 print (“Replaced string is “ , s1) Output: Enter the string to be replaced: Computer Enter the string to replace with: repcomputer Replaced string is repcomputer |
|