[print("abc"[:x]+"xyz"[x:]) for x in range(len("abc")+1) if len("abc") == len("xyz")]
Standard input is empty
xyz ayz abz abc
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!