Count the vowels in a sentence #
Write a function that takes a sentence as input and returns the count of vowels present in the sentence. Vowels are the letters 'a', 'e', 'i', 'o', and 'u' (both uppercase and lowercase).
Tests #
count_vowels("Hello, World!")should return3count_vowels("Python is Awesome")should return6count_vowels("Quick brown fox jumps over the lazy dog")should return10count_vowels("THIS SENTENCE HAS VOWELS")should return7count_vowels("")should return0
Getting Started with Python
Data Types
Python Functions
Statements in Python
Basic Debugging in Python
Basic Algorithm
Object-Oriented Programming
Error Handling
Intermediate Algorithm
Python Modules