fork(1) download
  1. line='0.2741564350068515+2.6100840481550604*^-10*I\n'
  2. print("({})".format(line.strip().replace("*^", "e").replace("*I", "j")))
Success #stdin #stdout 0.01s 9016KB
stdin
Standard input is empty
stdout
(0.2741564350068515+2.6100840481550604e-10j)