Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ТРЕТЬЕ==============
- n = int(input())
- A = []
- a = 0
- for i in range(n):
- word = input()
- for elem in word:
- if elem.isdigit():
- pass
- else:
- word = word.replace(elem, ' ')
- A.append(word.split(' '))
- for elem in A:
- for el in elem:
- if el != '':
- a += int(el)
- print(a)
- ЧЕТВЕРТОЕ======================
- n = int(input())
- a = []
- count = 0
- for m in range(n):
- count += 1
- word = input()
- for el in word:
- print(chr(ord(el) + count), end='')
- print()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement