human
Minimum elements to be added in a range so that count of elements is divisible by K | Python 3 implementation of the approach.
Total elements in the range.
If total elements are already divisible by k.
Value that must be added to count in order to make it divisible by k.
Driver Program to test above function"
Solution in Python:
 What is a code to minimum elements to be added in a range so that count of elements is divisible by K and the other steps required?
assistant
#Here is code to minimum elements to be added in a range so that count of elements is divisible by K and the other steps required.
 def minimumMoves ( k , l , r ) :
	count = r - l + 1
	if ( count % k == 0 ) :
		return 0
	return ( k - ( count % k ) )
if __name__ == ' _ _ main _ _ ' :
	k = 3
	l = 10
	r = 10
	print ( minimumMoves ( k , l , r ) )