Question: PYTHON PLEASE DONT JUST GIVE ANS EXPLAIN: Question 12 (20 points) Write a function named vowel_tracker that computes and returns how many strings in a

PYTHON PLEASE DONT JUST GIVE ANS EXPLAIN:

Question 12 (20 points) Write a function named vowel_tracker that computes and returns how many strings in a list of strings begin and/or end with a vowel. (The letters a, e, i, o and u are vowels. Both upper and lower case vowels should be tracked.)

Input: The function vowel_tracker takes a single parameter, words, that is a list of non-empty strings.

Output: The function vowel_tracker should return a list of two integers, the first being the number of words in words that begin with a vowel and the second being the number of words in words that end with a vowel.

For example, the following would be correct output. >>> advice = ['And','this','above','all'] >>> print(vowel_tracker(advice)) [3, 1]

Question 13 (20 points)

Write a function named month_info. The function month_info should prompt the user for the

current month and the number of days in the current month, then print a comment telling the user

whether the month is short, medium or long. (You may assume that the user provides valid input.)

Input: The function month_info takes one integer parameter: medium_length.

Output:

-The function month_info should print the current month and whether the month is short,

medium or long.

-The function month_info should return the current month.

For example, the following would be valid input and output.

>>> current_month = month_info(30)

What month is it? February

How many days in February? 28

February is short

>>> print(current_month)

February

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 Databases Questions!