human
Minimum time required to fill a cistern using N pipes | Function to calculate the time.
Driver Code"
How can the above be solved in Python?
 Give me a code to minimum time required to fill a cistern using N pipes and the other steps required?
assistant
#Here is code to minimum time required to fill a cistern using N pipes and the other steps required.
 def Time ( arr , n , Emptypipe ) :
	fill = 0
	for i in range ( 0 , n ) :
		fill += ( 1 / arr [ i ] )
	fill = fill - ( 1 / float ( Emptypipe ) )
	return int ( 1 / fill )
if __name__ == ' _ _ main _ _ ' :
	arr = [ 12 , 14 ]
	Emptypipe = 30
	n = len ( arr )
	print ( ( Time ( arr , n , Emptypipe ) ) , " Hours " )