Subash Chandran posted: "Use str. replace() to replace a string in a list strings = ["a", "ab", "aa", "c"] new_strings = [] for string in strings: new_string = string. replace("a", "1") Modify old string. new_strings. ap"
|

Subash Chandran posted: "Use str. replace() to replace a string in a list strings = ["a", "ab", "aa", "c"] new_strings = [] for string in strings: new_string = string. replace("a", "1") Modify old string. new_strings. ap"
|
Write a newfangled code fragment at an earlier stage to use it. Then call another method and make sure their input is the correct one. The s...
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.