SaveText.Ru

Без имени
  1. N = input()
  2. a = N[:-1]
  3. a = a.split(' ')
  4. for i in range(len(a)):
  5.   k = len(a[i])
  6.   for j in range(len(a[i])):
  7.     letter = ord(a[i][j])
  8.     letter += k
  9.     letter = chr(letter)
  10.     a[i][j].replace(a[j], letter)
  11. print(a)

Share with your friends:

Print