human
Find largest factor of N such that N / F is less than K | Function to find the value of X.
Loop to check all the numbers divisible by N that yield minimum N / i value.
Prthe value of packages.
Driver code.
Given N and K.
Function call"
How can the above be solved in Python?

Give me a code to find largest factor of N such that N / F is less than K and the other steps required?
assistant
#Here is code to find largest factor of N such that N / F is less than K and the other steps required.
 def findMaxValue ( N , K ) :
	packages = 0 ;
	maxi = 1 ;
	for i in range ( 1 , K + 1 ) :
		if ( N % i == 0 ) :
			maxi = max ( maxi , i ) ;
	packages = N // maxi ;
	print ( packages ) ;
if __name__ == ' _ _ main _ _ ' :
	N = 8 ;
	K = 7 ;
	findMaxValue ( N , K ) ;