Define a function named get_sum_consonants(words_list) which takes a list of words as a parameter and returns the total

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

Define a function named get_sum_consonants(words_list) which takes a list of words as a parameter and returns the total

Post by answerhappygod »

Define a function
named get_sum_consonants(words_list) which takes a list
of words as a parameter and returns the total number of consonants
in the parameter list. For example:
produces:
Note that there are 21 consonant characters (B, C, D, F, G, H,
J, K, L, M, N, P, Q, R, S, T, V, W, X, Y and Z), but your code
should be able to handle both upper and lower case characters in
the words. The program should return 0 if the parameter is an empty
list or there are no consonant characters in the parameter
list.
For example:
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply