I am wondering what is the most pythonic way to do the following and make it work:
strings = ['a','b']
for s in strings:
s = s+'c'
obviously this doesn't work in python, but the result I want to achieve is Strings = ['ac', 'bc']
What is the most pythonic way to achieve such a result?
Thanks for the great answers!
source
share