Subash Chandran posted: " # Python3 program to demonstrate the # use of replace() method string = "geeks for geeks geeks geeks geeks" # Prints the string by replacing geeks by Geeks print(string.replace("geeks", "Geeks")) # Prints"
|

No comments:
Post a Comment
Note: Only a member of this blog may post a comment.