human
Check if two numbers have same number of digits | Function that return true if A and B have same number of digits.
Both must be 0 now if they had same lengths.
Driver code"
Solution in Python:
 Write me a code to check if two numbers have same number of digits and the other steps required?
assistant
#Here is code to check if two numbers have same number of digits and the other steps required.
 def sameLength ( A , B ) :
	while ( A > 0 and B > 0 ) :
		A = A / 10 ;
		B = B / 10 ;
	if ( A == 0 and B == 0 ) :
		return True ;
	return False ;
A = 21 ; B = 1 ;
if ( sameLength ( A , B ) ) :
	print ( " Yes " ) ;
else :
	print ( " No " ) ;