input len min split for in range len if isalpha True if chr ord isalph

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
n = input()
k = len(min(n.split()))
h = ''
for i in range(len(n)):
c = n[i]
if c.isalpha() == True:
if chr(ord(n[i]) - k).isalpha() == True:
h += chr(ord(n[i]) - k)
else:
h += chr(ord(n[i]) - k + 26)
else:
h += c
print(h)