Update the character
if ord ( S [ i ] ) + add <= ord ( ' z ' ) : NEW_LINE INDENT S [ i ] = chr ( ord ( S [ i ] ) + add ) NEW_LINE DEDENT else : NEW_LINE INDENT add = ord ( S [ i ] ) + add - ord ( ' z ' ) NEW_LINE S [ i ] = chr ( ord ( ' a ' ) + add - 1 ) NEW_LINE DEDENT