human
Check if a large number is divisible by 9 or not | Function to find that number divisible by 9 or not.
Compute sum of digits.
Check if sum of digits is divisible by 9..
Driver code"
How can the above be solved in Python?
 ... What is a code to check if a large number is divisible by 9 or not and the other steps required?
assistant
#Here is code to check if a large number is divisible by 9 or not and the other steps required.
 def check ( st ) :
	n = len ( st )
	digitSum = 0
	for i in range ( 0 , n ) :
		digitSum = digitSum + ( int ) ( st [ i ] )
	return ( digitSum % 9 == 0 )
st = "99333"
if ( check ( st ) ) :
	print ( " Yes " )
else :
	print ( " No " )