Created
October 2, 2017 10:03
-
-
Save udhayprakash/c9f441ef360f0730ea03831633a9b7e8 to your computer and use it in GitHub Desktop.
list_string_operation.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# input : data = ["a","b","c"] | |
# | |
# output : data = ["a"."b"."c"] | |
>>> data = ["a","b","c"] | |
>>> data | |
['a', 'b', 'c'] | |
>>> str(data) | |
"['a', 'b', 'c']" | |
>>> str(data).replace(',', '.') | |
"['a'. 'b'. 'c']" | |
>>> new_data = str(data).replace(',', '.') | |
>>> new_data | |
"['a'. 'b'. 'c']" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment