Saved Bookmarks
| 1. |
Write note on replace function? |
|
Answer» The replace function replaces all occurrences of char 1 with char 2. Example >>> str1 = ”How are you” >>> print (str1) How are you >>>print (str1.replace(“o”, “e”)) Hew are yeu |
|