Question: Define a python method named vowel_count that accepts a string as its only parameter, and constructs and returns a list of integers that represents the

Define a python method named vowel_count that accepts a string as its only parameter, and constructs and returns a list of integers that represents the counts of each vowel in the String.The list returned by your method should hold precisely 5 integers: the first is the count of A's, the second is the count of E's, the third is the count of I's, the fourth is O's, and the fifth is U's.The count should include both upper and lowercase vowels.Exclude the letter Y as a vowel.

For example, the call vowel_count ("I think, therefore I am")should return a list containing the values [1, 3, 3, 1, 0].Write a main program that thoroughly tests out vowel_count.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!