human
Coordinates of rectangle with given points lie inside | function to print coordinate of smallest rectangle.
find Xmax and Xmin.
find Ymax and Ymin.
print all four coordinates.
driver program"
How can the above be solved in Python?
 ... Give me a code to coordinates of rectangle with given points lie inside and the other steps required?
assistant
#Here is code to coordinates of rectangle with given points lie inside and the other steps required.
 def printRect ( X , Y , n ) :
	Xmax = max ( X )
	Xmin = min ( X )
	Ymax = max ( Y )
	Ymin = min ( Y )
	print ( " { " , Xmin , " , ▁ " , Ymin , " } " , sep = " " )
	print ( " { " , Xmin , " , ▁ " , Ymax , " } " , sep = " " )
	print ( " { " , Xmax , " , ▁ " , Ymax , " } " , sep = " " )
	print ( " { " , Xmax , " , ▁ " , Ymin , " } " , sep = " " )
X = [ 4 , 3 , 6 , 1 , - 1 , 12 ]
Y = [ 4 , 1 , 10 , 3 , 7 , - 1 ]
n = len ( X )
printRect ( X , Y , n )