human
Number of hours after which the second person moves ahead of the first person if they travel at a given speed | Function to return the number of hours for the second person to move ahead.
Time taken to equalize.
Time taken to move ahead.
Driver code"
How can the above be solved in Python?
 Give me a code to number of hours after which the second person moves ahead of the first person if they travel at a given speed and the other steps required?
assistant
#Here is code to number of hours after which the second person moves ahead of the first person if they travel at a given speed and the other steps required.
 def findHours ( a , b , k ) :
	if ( a >= b ) :
		return - 1
	time = k // ( b - a )
	time = time + 1
	return time
a = 4
b = 5
k = 1
print ( findHours ( a , b , k ) )