human
Write me a code to product of Complex Numbers using three Multiplication Operation and the other steps required given the following:
Product of Complex Numbers using three Multiplication Operation | Function to multiply Complex Numbers with just three multiplications.
Find value of prod1 , prod2 and prod3.
Real part.
Imaginary part.
Print the result.
Given four numbers.
Function call"
How can the above be solved in Python?
assistant
#Here is code to product of Complex Numbers using three Multiplication Operation and the other steps required.
 def print_product ( a , b , c , d ) :
	prod1 = a * c
	prod2 = b * d
	prod3 = ( a + b ) * ( c + d )
	real = prod1 - prod2
	imag = prod3 - ( prod1 + prod2 )
	print ( real , " ▁ + ▁ " , imag , " i " )
a = 2
b = 3
c = 4
d = 5
print_product ( a , b , c , d )