Assuming you have
two_word_sets = ["mike dc", "car dc", "george dc", "jerry dc"]
using
print "\t".join(two_word_sets)
or, for Python 3:
print("\t".join(two_word_sets))
to print a tab-delimited list to standard output.
If you only have
mystr = "mike dc car dc george dc jerry dc"
a :
words = mystr.split()
two_word_sets = [" ".join(tup) for tup in zip(words[::2], words[1::2])]
, , zip(a_proto[::2], a_proto[1::2]) - [('mike', 'dc'), ('car', 'dc'), ('george', 'dc'), ('jerry', 'dc')]. .
, / izip [itertools], zip , izip .