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:
Define a function named get_sum_consonants(words_list) which takes a list of words as a parameter and returns the total
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am