There is a standard method for this:
mydict = dict.fromkeys(string.printable, 0)
or, if you need a list of tuples (to be honest, the Martijn version is more python, but only for a change):
import itertools tuples = zip(string.printable, itertools.repeat(0))
source share