line='0.2741564350068515+2.6100840481550604*^-10*I\n'print("({})".format(line.strip().replace("*^", "e").replace("*I", "j")))
Standard input is empty
(0.2741564350068515+2.6100840481550604e-10j)
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!