Question: Write a Python function called count _ vowels _ and _ consonants ( word ) that counts the number of vowels and consonants in a
Write a Python function called countvowelsandconsonantsword that counts
the number of vowels and consonants in a given string passed to it as its
parameters pts Return vowel and consonant counts and print the message.
Examples
word "catastrophic world"
vowelscount, consonantcount countvowelsandconsonantsword
There are vowels and consonants in catastrophic world.
word "indispensable"
vowelscount, consonantcount countvowelsandconsonantsword
There are vowels and consonants in indispensable.
Variables:
vowelscount, consonantcount
Parameter: word
VOWELS "aeiou"
# Write your solution for problem here.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
