News

Write a Python program that takes a string input from the user and counts the number of vowels and consonants in the string. # Consider vowels to be the characters 'a', 'e', 'i', 'o', and 'u' (both ...
num_vowels = sum(1 for char in statement if char in vowels) num_consonants = sum(1 for char in statement if char.isalpha() and char not in vowels) ...