human
Program to find remainder when large number is divided by r | Function to Return Remainder.
len is variable to store the length of Number string ..
loop that find Remainder.
Return the remainder.
Driver code.
Get the large number as string.
Get the divisor R.
Find and print the remainder"
How can the above be solved in Python?
 ... Give me a code to program to find remainder when large number is divided by r and the other steps required?
assistant
#Here is code to program to find remainder when large number is divided by r and the other steps required.
 def Remainder ( str , R ) :
	l = len ( str )
	Rem = 0
	for i in range ( l ) :
		Num = Rem * 10 + ( ord ( str [ i ] ) - ord ( '0' ) )
		Rem = Num % R
	return Rem
if __name__ == " _ _ main _ _ " :
	str = "13589234356546756"
	R = 13
	print ( Remainder ( str , R ) )