human
Multiplication of two numbers with shift operator | Function for multiplication.
check for set bit and left shift n , count times.
increment of place value ( count ).
Driver code"
Solution in Python:
 What is a code to multiplication of two numbers with shift operator and the other steps required?
assistant
#Here is code to multiplication of two numbers with shift operator and the other steps required.
 def multiply ( n , m ) :
	ans = 0
	count = 0
	while ( m ) :
		if ( m % 2 == 1 ) :
			ans += n << count
		count += 1
		m = int ( m / 2 )
	return ans
if __name__ == ' _ _ main _ _ ' :
	n = 20
	m = 13
	print ( multiply ( n , m ) )