fromkeys() - Returns a dictionary with the specified keys and value

Returns a dictionary from a list of keys and sets them all to the specified value.  If the value is omitted, the value all keys are set to is None.

Notice that fromkeys is a special function built into the dict object.

Example

Python
fish = {'guppy', 'zebra', 'betta'}
fishStock = dict.fromkeys(fish, 10)
print(fishStock)

Output

{'zebra': 10, 'betta': 10, 'guppy': 10}