fromkeys dictionary python code example
Example: dictionary function fromkeys in python
key = { "India", "Austria", "USA", "Pakistan", "Czech Republic"}
value = "Country"
countries = dict.fromkeys(key, value) # function fromkeys
counties
#returns {'USA': 'Country',
'Pakistan': 'Country',
'Austria': 'Country',
'India': 'Country',
'Czech Republic': 'Country'}