blob: 249ddb37672165a98b8f676a221b8dc21c670254 (
plain)
1
2
3
4
5
6
7
8
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)
|