human
Recursive Programs to find Minimum and Maximum elements of array | function to print Minimum element using recursion.
if size = 0 means whole array has been traversed.
Driver Code"
How can the above be solved in Python?
 Can you provide a code to recursive Programs to find Minimum and Maximum elements of array and the other steps required?
assistant
#Here is code to recursive Programs to find Minimum and Maximum elements of array and the other steps required.
 def findMinRec ( A , n ) :
	if ( n == 1 ) :
		return A [ 0 ]
	return min ( A [ n - 1 ] , findMinRec ( A , n - 1 ) )
if __name__ == ' _ _ main _ _ ' :
	A = [ 1 , 4 , 45 , 6 , - 50 , 10 , 2 ]
	n = len ( A )
	print ( findMinRec ( A , n ) )