Source Code:
(back to article)
# Complex number addition print(1 + 2j + 3 + 4j) # Complex number subtraction print(3 + 4j - 1 - 2j) # Complex number multiplication print((1 + 2j) * (3 + 4j)) # Complex number division is not supported in Python
Result:
Report an issue