Caesar cipher using ASCII character codes This function should take in a string and a number as parameters and 'rotate' the string to the equivalent alphabet letter that is located at the letter position + 'rotation' parameter.
E.g.: &quot;stackoverflow&quot; --- &quot;fgnpxbiresybj&quot;
def caesar(inputString, rotation = 1):
    zNum = ord('z')
    alphaLen = 26

    result = []
    for c in inputString:
        charNum = ord(c) + rotation
        if charNum &gt; zNum:
            result.append(chr(charNum - alphaLen))
        else:
            result.append(chr(charNum))

    return ''.join(result)
Good things

String building: the new string is built step by step using a list, this is more efficient than concatenating char by char.

To improve

Bug: caesar('a',500) returns Ȼ. You likely want to use the operator % to stay in the range a-z.
PEP 8: variable names should be lowercase, with words separated by underscores. More info.