PYTHON QUESTION!
Write a function vowel_consonant_ratio(sentence) that
takes an input parameter sentence (type string) and:
The formatting for the outputs can be seen in the test
cases.
Cases where your function cannot perform the ratio calculation
should return 0.0
NB: this one's not really a part of the typical NLP processing
pipeline, but it's a fun exercise
For example:
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!