I am trying to increment the following string in the variable, tmp='5a'
to '5b'
. I found online a solution that allows me to increment a character using chr(ord('a') + 1)
to get b
.
But, I am not able to understand how can I perform the same operation on the variable tmp
.
May someone help me.