human
Forming smallest array with given constraints | Return the size of smallest array with given constraint ..
Drivers code"
How can the above be solved in Python?

=====
Give me a code to forming smallest array with given constraints and the other steps required?
assistant
#Here is code to forming smallest array with given constraints and the other steps required.
 def minimumLength ( x , y , z ) :
	return ( 1 + abs ( x - y ) + abs ( y - z ) )
x = 3
y = 1
z = 2
print ( minimumLength ( x , y , z ) )