PYTHON QUESTION! Write a function vowel_consonant_ratio(sentence) that takes an input parameter sentence (type string) a

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: 899604
Joined: Mon Aug 02, 2021 8:13 am

PYTHON QUESTION! Write a function vowel_consonant_ratio(sentence) that takes an input parameter sentence (type string) a

Post by answerhappygod »

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!
Post Reply