Examples:
Input: pythonengineering Output: Not Accepted Input: ABeeIghiObhkUul Output: Accepted
Approach: First , create a vowel set using the set ()
function. Check for each character of the string a vowel or not, if a vowel, then add s to the set. After exiting the loop, check the length of the set s, if the length of the set s is equal to the length of the set of vowels, then the string is accepted, otherwise not.
Below is the implementation:
|
Exit :
Accepted