human
Check if the number is balanced | Function to check whether N is Balanced Number or not.
Calculating the Leftsum and rightSum simultaneously.
Typecasting each character to integer and adding the digit to respective sums.
Driver Code.
Function call"
Solution in Python:

Write me a code to check if the number is balanced and the other steps required?
assistant
#Here is code to check if the number is balanced and the other steps required.
 def BalancedNumber ( s ) :
	Leftsum = 0
	Rightsum = 0
	for i in range ( 0 , int ( len ( s ) / 2 ) ) :
		Leftsum = Leftsum + int ( s [ i ] )
		Rightsum = ( Rightsum + int ( s [ len ( s ) - 1 - i ] ) )
	if ( Leftsum == Rightsum ) :
		print ( " Balanced " , end =   ' ' )
	else :
		print ( " Not ▁ Balanced " , end =   ' ' )
s = "12321"
BalancedNumber ( s )