Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed
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)) 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 monthinfo should return the current month - For example, the following would be valid input and output. >>> current monthmonth 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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

1. PricewaterhouseCoopers

Answered: 1 week ago

Question

3. SCC Soft Computer

Answered: 1 week ago

Question

2. KMPG LLP

Answered: 1 week ago