Skip to content

Instantly share code, notes, and snippets.

@udhayprakash
Created October 2, 2017 10:03
Show Gist options
  • Save udhayprakash/c9f441ef360f0730ea03831633a9b7e8 to your computer and use it in GitHub Desktop.
Save udhayprakash/c9f441ef360f0730ea03831633a9b7e8 to your computer and use it in GitHub Desktop.
list_string_operation.py
# 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