Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ibensusan/vowels-counter
Algorithm to count the number of vowels in a given string using Python
https://github.com/ibensusan/vowels-counter
Last synced: 25 days ago
JSON representation
Algorithm to count the number of vowels in a given string using Python
- Host: GitHub
- URL: https://github.com/ibensusan/vowels-counter
- Owner: iBensusan
- License: mit
- Created: 2024-10-14T15:20:21.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2024-10-14T15:23:29.000Z (3 months ago)
- Last Synced: 2024-10-18T07:02:38.305Z (3 months ago)
- Language: Python
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Vowel Counter
This is a beginner-level Python script that counts the number of vowels in a given string. The program takes user input, processes the string, and outputs the total count of vowels (a, e, i, o, u) in both uppercase and lowercase forms.
## How It Works
The script converts the input string to lowercase and checks each character to see if it is a vowel. It uses a Python `set` for efficient vowel checking and returns the total number of vowels found.
### Features
- Efficient use of a `set` for quick vowel lookups.
- Accepts user input for flexibility.
- Handles both uppercase and lowercase vowels.## Requirements
- Python3