human
How to compute mod of a big number ? | Function to compute num ( mod a ).
Initialize result.
One by one process all digits of 'num.
Driver program"
Solution in Python:
 Write me a code to how to compute mod of a big number?
assistant
#Here is code to how to compute mod of a big number .
 def mod ( num , a ) :
	res = 0
'
	for i in range ( 0 , len ( num ) ) :
		res = ( res * 10 + int ( num [ i ] ) ) % a
	return res
num = "12316767678678"
print ( mod ( num , 10 ) )