I want to create a special calculator using python but for doing this I should know more about complex numbers. My calculator must get a string and output complex equation. Please help me.
myinput = "5 + 2j"
myoutput = ConvertToComplex(myinput) * (3 + 12j) #please help me with writing this function
print(myoutput)