human
Program to find remainder when large number is divided by 11 | Function to return remainder.
len is variable to store the length of number string ..
loop that find remainder.
Driver code"
How can the above be solved in Python?
 Give me a code to program to find remainder when large number is divided by 11 and the other steps required?
assistant
#Here is code to program to find remainder when large number is divided by 11 and the other steps required.
 def remainder ( st ) :
	ln = len ( st )
	rem = 0
	for i in range ( 0 , ln ) :
		num = rem * 10 + ( int ) ( st [ i ] )
		rem = num % 11
	return rem
st = "3435346456547566345436457867978"
print ( remainder ( st ) )