Given a English alphabet c, Write a program to check whether a character is a vowel or not.
 
Example 1:
Input:
c = 'a'
Output:
YES
Explanation:
'a' is a vowel.
 
Example 2:
Input:
c = 'Z'
Output:
NO
Explanation:
'Z' is not a vowel.
 
 
Your Task:
You don't need to read input or print anything. Your task is to complete the function isVowel() which takes a character c and returns 'YES' or 'NO'.
 
Expected Time Complexity: O(1)
Expected Auxiliary Space: O(1)
 
Note: c is either lowercase or uppercase English alphabetic character
Constraints:
c belongs to English Alphabets.

Source: geeksforgeeks | Difficulty: EASY

Starter code: #User function Template for python3
class Solution:
    def isVowel (ob,c):
        # code here 

Solutions:
class Solution:

	def isVowel(ob, c):
		if c == 'a' or c == 'e' or c == 'i' or (c == 'o') or (c == 'u') or (c == 'A') or (c == 'E') or (c == 'I') or (c == 'O') or (c == 'U'):
			return 'YES'
		else:
			return 'NO'


class Solution:

	def isVowel(ob, c):
		c = c.lower()
		if c == 'a' or c == 'e' or c == 'i' or (c == 'o') or (c == 'u'):
			return 'YES'
		else:
			return 'NO'


class Solution:

	def isVowel(ob, c):
		vowels = 'aeiou'
		ans = c.lower()
		if ans in vowels:
			return 'YES'
		else:
			return 'NO'


class Solution:

	def isVowel(ob, c):
		vowels = set('aeiouAEIOU')
		if c in vowels:
			return 'YES'
		return 'NO'


class Solution:

	def isVowel(ob, c):
		vowel = ['a', 'e', 'i', 'o', 'u', 'A', 'E', 'I', 'O', 'U']
		if c in vowel:
			return 'YES'
		return 'NO'


class Solution:

	def isVowel(ob, c):
		if c in 'aeiouAEIOU':
			return 'YES'
		else:
			return 'NO'


class Solution:

	def isVowel(ob, c):
		c = str(c).lower()
		vow = {'a': '', 'e': '', 'i': '', 'o': '', 'u': ''}
		res = 'NO'
		if c in vow:
			res = 'YES'
		return res


class Solution:

	def isVowel(ob, c):
		vowels = ['a', 'e', 'i', 'o', 'u']
		if c.lower() in vowels:
			return 'YES'
		return 'NO'


class Solution:

	def isVowel(ob, c):
		c = c.lower()
		a = 'aeiou'
		if c in a:
			return 'YES'
		else:
			return 'NO'


class Solution:

	def isVowel(ob, c):
		if 'aeiouAEIOU'.find(c) == -1:
			return 'NO'
		else:
			return 'YES'


class Solution:

	def isVowel(ob, c):
		D = 'AEIOUaeiou'
		if c in D:
			return 'YES'
		else:
			return 'NO'


class Solution:

	def isVowel(ob, c):
		a = 'YES'
		b = 'NO'
		if c in 'aeiou':
			return a
		elif c in 'AEIOU':
			return a
		else:
			return b


class Solution:

	def isVowel(ob, c):
		v = ['a', 'e', 'i', 'o', 'u']
		l = c.lower()
		if l in v:
			return 'YES'
		else:
			return 'NO'


class Solution:

	def isVowel(ob, c):
		c = c.capitalize()
		if c in ['A', 'E', 'I', 'O', 'U']:
			return 'YES'
		else:
			return 'NO'


class Solution:

	def isVowel(ob, c):
		vowel = ['a', 'e', 'i', 'o', 'u', 'A', 'E', 'I', 'O', 'U']
		for i in vowel:
			if i == c:
				k = 'YES'
				break
			else:
				k = 'NO'
		return k


class Solution:

	def isVowel(ob, c):
		arr = ['a', 'e', 'i', 'o', 'u', 'A', 'E', 'I', 'O', 'U']
		if c not in arr:
			return 'NO'
		else:
			return 'YES'