human
Sum of all numbers in the given range which are divisible by M | Function to find the sum of numbers divisible by M in the given range.
Variable to store the sum.
Running a loop from A to B and check if a number is divisible by i ..
If the number is divisible , then add it to sum.
Return the sum.
Driver code.
A and B define the range M is the dividend.
Printing the result"
How can the above be solved in Python?

=====
Write me a code to sum of all numbers in the given range which are divisible by M and the other steps required?
assistant
#Here is code to sum of all numbers in the given range which are divisible by M and the other steps required.
 def sumDivisibles ( A , B , M ) :
	sum = 0
	for i in range ( A , B + 1 ) :
		if ( i % M == 0 ) :
			sum += i
	return sum
if __name__ == " _ _ main _ _ " :
	A = 6
	B = 15
	M = 3
	print ( sumDivisibles ( A , B , M ) )