print("ingresa un número")
a=str(input())
b=complex(a)
print("El número complejo de tu número definido como complejo es",b)

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: