Page 1 of 1

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

Posted: Thu May 26, 2022 10:00 am
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: