human
Container with Most Water | Python3 code for Max Water Container.
Calculating the max area.
Driver code"
How can the above be solved in Python?
 Write me a code to container with Most Water and the other steps required?
assistant
#Here is code to container with Most Water and the other steps required.
 def maxArea ( A , Len ) :
	area = 0
	for i in range ( Len ) :
		for j in range ( i + 1 , Len ) :
			area = max ( area , min ( A [ j ] , A [ i ] ) * ( j - i ) )
	return area
a = [ 1 , 5 , 4 , 3 ]
b = [ 3 , 1 , 2 , 4 , 5 ]
len1 = len ( a )
print ( maxArea ( a , len1 ) )
len2 = len ( b )
print ( maxArea ( b , len2 ) )