Python Forum
Counting Vowels in Python
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Counting Vowels in Python
#2
you are overthinking. As per the question statement count_vowels and count_consonants already exists in the same file (what does this tell you?). You need to write function that calls both count_vowels and count_consonants. The boilerplate for the function is provided. So you need to write one line that will return total number of letter in a word by calling the 2 functions already availablle
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply


Messages In This Thread
Counting Vowels in Python - by sapphosvoice - May-05-2020, 01:01 AM
RE: Counting Vowels in Python - by buran - May-05-2020, 04:24 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
Bug How to print only vowels from an input? PP9044 8 7,731 Feb-26-2021, 04:02 PM
Last Post: Serafim
  Return not vowels list erfanakbari1 2 2,748 Mar-26-2019, 11:37 AM
Last Post: perfringo
  Help with finding vowels nlord7 1 2,308 Feb-27-2019, 04:40 AM
Last Post: ichabod801
  Functions to remove vowels and extra blanks RiceGum 10 5,982 Nov-17-2017, 05:40 PM
Last Post: heiner55
  Print the index of the vowels in a string MeeranRizvi 4 14,789 Dec-29-2016, 02:43 PM
Last Post: snippsat

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020