Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Define a function named get_all_alphabetic_non_vowels(words_list) which takes a list of words as a parameter and returns a dictionary. The keys of the dictionary are all

Define a function named get_all_alphabetic_non_vowels(words_list) which takes a list of words as a parameter and returns a dictionary. The keys of the dictionary are all the alphabetic lowercase letters which are not vowels from any word in the parameter list. The value is the number of occurrences of the corresponding letter. Note that you will need to process each letter of each word in the list and the words need to be converted to lowercase first.

For example:

Test Result
words_list = ['Amazingly', 'tremendous'] a_dict = get_all_alphabetic_non_vowels(words_list) for key in sorted(a_dict.keys()): print(key, ':', a_dict[key]) 
d : 1 g : 1 l : 1 m : 2 n : 2 r : 1 s : 1 t : 1 y : 1 z : 1 

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

Step: 3

blur-text-image

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

The Ages Of The Investor A Critical Look At Life Cycle Investing

Authors: William J Bernstein

1st Edition

1478227133, 978-1478227137

Students also viewed these Databases questions