human
Time until distance gets equal to X between two objects moving in opposite direction | Function to return the time for which the two policemen can communicate.
time = distance / speed.
Driver code"
How can the above be solved in Python?

=====
Write me a code to time until distance gets equal to X between two objects moving in opposite direction and the other steps required?
assistant
#Here is code to time until distance gets equal to X between two objects moving in opposite direction and the other steps required.
 def getTime ( u , v , x ) :
	speed = u + v
	time = x / speed
	return time
if __name__ == " _ _ main _ _ " :
	u , v , x = 3 , 3 , 3
	print ( getTime ( u , v , x ) )