human
Find substrings that contain all vowels | Returns true if x is vowel ..
Function to check whether a character is vowel or not.
Outer loop picks starting character and inner loop picks ending character ..
If current character is not vowel , then no more result substr1ings possible starting from str1 [ i ] ..
If vowel , then we insert it in hash.
If all vowels are present in current substr1ing.
Driver code"
How can the above be solved in Python?
 ... What is a code to find substrings that contain all vowels and the other steps required?
assistant
#Here is code to find substrings that contain all vowels and the other steps required.
 def isVowel ( x ) :
	if ( x == ' a ' or x == ' e ' or x == ' i ' or x == ' o ' or x == ' u ' ) :
		return True
	return False
def FindSubstr1ing ( str1 ) :
	n = len ( str1 )
	for i in range ( n ) :
		hash = dict ( )
		for j in range ( i , n ) :
			if ( isVowel ( str1 [ j ] ) == False ) :
				break
			hash [ str1 [ j ] ] = 1
			if ( len ( hash ) == 5 ) :
				print ( str1 [ i : j + 1 ] , end = " ▁ " )
str1 = " aeoibsddaeiouudb "
FindSubstr1ing ( str1 )