x="John Marry Joseph"print([(y+"@company.com") for y in x.split()])
Standard input is empty
['John@company.com', 'Marry@company.com', 'Joseph@company.com']
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!