diff options
Diffstat (limited to 'progs/a446.py')
-rw-r--r-- | progs/a446.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/progs/a446.py b/progs/a446.py new file mode 100644 index 0000000..249ddb3 --- /dev/null +++ b/progs/a446.py @@ -0,0 +1,9 @@ +def get_Char(strr):
+ summ = 0
+ for i in range(len(strr)):
+ summ += (ord(strr[i]) - ord('a') + 1)
+ if (summ % 26 == 0):
+ return ord('z')
+ else:
+ summ = summ % 26
+ return chr(ord('a') + summ - 1)
\ No newline at end of file |