sentence = input("Введите предложение: ") vowels = "аеёиоуыэюяАЕЁИОУЫЭЮЯ" consonants = "бвгджзйклмнпрстфхцчшщБВГДЖЗЙКЛМНПРСТФХЦЧШЩ" vowel_count = 0 consonant_count = 0 for char in sentence: if char == ' ': continue if char in vowels: vowel_count += 1 if char in consonants: consonant_count += 1 print(f"Гласных букв: {vowel_count}") print(f"Согласных букв: {consonant_count}")