Run Program ❯
Python Home
❯
Run Code
Change Orientation
# Create complex numbers z1 = 3 + 4j z2 = 1 - 2j # Perform arithmetic operations sum_z = z1 + z2 product_z = z1 * z2 # Print results print("Sum:", sum_z) print("Product:", product_z)