human
Number of ways to arrange a word such that all vowels occur together | Factorial of a number.
calculating ways for arranging consonants.
Ignore vowels.
calculating ways for arranging vowels.
Function to count total no . of ways.
Count vowels and consonant.
total no . of ways.
Driver code"
Solution in Python:

=====
Give me a code to number of ways to arrange a word such that all vowels occur together and the other steps required?
assistant
#Here is code to number of ways to arrange a word such that all vowels occur together and the other steps required.
 def fact ( n ) :
	f = 1
	for i in range ( 2 , n + 1 ) :
		f = f * i
	return f
def waysOfConsonants ( size1 , freq ) :
	ans = fact ( size1 )
	for i in range ( 26 ) :
		if ( i == 0 or i == 4 or i == 8 or i == 14 or i == 20 ) :
			continue
		else :
			ans = ans // fact ( freq [ i ] )
	return ans
def waysOfVowels ( size2 , freq ) :
	return ( fact ( size2 ) // ( fact ( freq [ 0 ] ) * fact ( freq [ 4 ] ) * fact ( freq [ 8 ] ) * fact ( freq [ 14 ] ) * fact ( freq [ 20 ] ) ) )
def countWays ( str1 ) :
	freq = [ 0 ] * 26
	for i in range ( len ( str1 ) ) :
		freq [ ord ( str1 [ i ] ) - ord ( ' a ' ) ] += 1
	vowel = 0
	consonant = 0
	for i in range ( len ( str1 ) ) :
		if ( str1 [ i ] != ' a ' and str1 [ i ] != ' e ' and str1 [ i ] != ' i ' and str1 [ i ] != ' o ' and str1 [ i ] != ' u ' ) :
			consonant += 1
		else :
			vowel += 1
	return ( waysOfConsonants ( consonant + 1 , freq ) * waysOfVowels ( vowel , freq ) )
if __name__ == " _ _ main _ _ " :
	str1 = " geeksforgeeks "
	print ( countWays ( str1 ) )