txt = input()
count_sentence = 0
for i in txt:
if i in ['.', '!', '?']:
count_sentence += 1
print('Кількість речень', count_sentence)
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
txt = input()
count_sentence = 0
for i in txt:
if i in ['.', '!', '?']:
count_sentence += 1
print('Кількість речень', count_sentence)