lis=[0, [], 0, 1, [], 1]dic={0:'x',1:'y'}[dic.get(x,x) for x in lis]
Standard input is empty
Standard output is empty
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!