import itertools
for acom in itertools.combinations('ABCD',2):
print acom
8
solved Set operations without using data type Set() [duplicate]
import itertools
for acom in itertools.combinations('ABCD',2):
print acom
8
solved Set operations without using data type Set() [duplicate]