human
Number of digits in the product of two numbers | function to count number of digits in the product of two numbers.
absolute value of the product of two numbers.
if product is 0.
count number of digits in the product 'p.
required count of digits.
Driver program to test above"
How can the above be solved in Python?
 What is a code to number of digits in the product of two numbers and the other steps required?
assistant
#Here is code to number of digits in the product of two numbers and the other steps required.
 def countDigits ( a , b ) :
	count = 0
	p = abs ( a * b )
	if ( p == 0 ) :
		return 1
'
	while ( p > 0 ) :
		count = count + 1
		p = p // 10
	return count
a = 33
b = - 24
print ( " Number ▁ of ▁ digits ▁ = ▁ " , countDigits ( a , b ) )