>>> ord('a') 97 >>> chr(97) 'a' >>> chr(ord('a') + 3) 'd' >>>
Here is what the above code is Doing:
1. ord(‘a’) returns the integer 97, which is the ASCII code for the character ‘a’.
2. chr(97) returns the character ‘a’.
3. chr(ord(‘a’) + 3) returns the character ‘d’.