fork download
  1. from itertools import combinations
  2. comb = combinations("abc",1)
  3. for i in list(comb):
  4. print (i)
Success #stdin #stdout 0.01s 27680KB
stdin
Standard input is empty
stdout
('a',)
('b',)
('c',)