1 задание:
eng = ""
rus = ""
engc, rusc = 0, 0
for i in input():
if i in eng:
engc += 1
else:
rusc += 1
print(engc, rusc
2 задание:
s = input().lower().split("-")
counter = 0
for i in s:
if i.startswith("п"):
counter += 1
print(counter)
3 задание:
def del_symbols(string):
return string.replace("?", "").replace("!", "")
print(del_symbols(input()))
1 задание:
eng = ""
rus = ""
engc, rusc = 0, 0
for i in input():
if i in eng:
engc += 1
else:
rusc += 1
print(engc, rusc
2 задание:
s = input().lower().split("-")
counter = 0
for i in s:
if i.startswith("п"):
counter += 1
print(counter)
3 задание:
def del_symbols(string):
return string.replace("?", "").replace("!", "")
print(del_symbols(input()))