from itertools import combinations comb = combinations("abc",1) for i in list(comb): print (i)
Standard input is empty
('a',) ('b',) ('c',)
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!