Lab Countem
This lab is to be done on your own.
The purpose of this lab is to create and use a function.
Create a python module named countem.py that does the following:
- Put comments at the top of your program with your name, date, and description of what the program does.
- Write the program to count the number of vowels in a string.
- This program must be written using a function named "countVowels" that takes a string in as the input parameter and returns an integer representing the number of vowels found.
- The vowels are a, e, i, o, u. The letter y is not considered a vowel for this program.
- Prompt the user for an input string which could be a single word, sentence or even an entire paragraph.
- Assume the input string could contain upper and lower case letters.
- Run the program at least three times with different data sets. One data set I have given you below.
Submit this program two ways:
- As a .py code file.
- As a screenshot in .jpg or .png format showing the program code and output. Make sure you capture your entire desktop.
The image below shows the template for the program that you should start with.
The image below shows an example run of the program.
The text below needs to be in one of your test runs.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean ut mauris lacus. Proin semper luctus ullamcorper. Donec vel nibh at mi imperdiet semper. Aliquam pharetra mattis consectetur. Ut eleifend nisl quam. Ut ex leo, congue vel porttitor in, tincidunt finibus ante. Suspendisse non lectus viverra, posuere libero non, venenatis diam. Vestibulum id justo vitae turpis elementum cursus at sed sapien.