num_texto=input("Ingresa tu numero: ")

num_complex=complex(num_texto)

print(f"Tu texto a un numero complejo es {num_complex}")

Embed on website

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