I\'ve searched on how to do this in python and I can\'t find an answer. If you have a string:
>>> value = \'abc\'
How would you
As gtllambert beat me to my original answer, I am posting an alternative solution. You can also use map
and a lambda expression to achieve the same. The lambda expression uses chr
and ord
to increment each character by one and chr
is used to convert it back to a character.
value = 'abc'
''.join(map(lambda x:chr(ord(x)+1),value))