Write a python function to check if a string contains a vowel or not


Topic: Write a python function to check if a string contains a vowel or not

Solution

def check_vowel(string):
    vowels = ['a', 'e', 'i', 'o', 'u']
    for vowel in vowels:
        if vowel in string:
            return True
    return False



List all Python Programs