@classmethod<EOL><INDENT>def fromkeys(cls, keys, value=None, names=None):<DEDENT>
N = len(keys)<EOL>if N > <NUM_LIT:1>:<EOL><INDENT>raise ValueError('<STR_LIT>'<EOL>'<STR_LIT>' % (N,))<EOL><DEDENT>items = [[keys[<NUM_LIT:0>], value]] if N == <NUM_LIT:1> else []<EOL>return cls(items, names)<EOL>
Create a new dictionary with keys from ``keys`` and values set to ``value``.

fromkeys() is a class method that returns a new dictionary. ``value`` defaults to None.

Length of ``keys`` must not exceed one because no duplicate values are allowed.

Optional ``names`` can be provided for index names (of length 2).