# Python code to demonstrate # converting set into dictionary # using fromkeys() # initializing set ini_set = {1, 2, 3, 4, 5} # Converting set to dictionary res = dict.fromkeys(ini_set, 0) # Output of print(res) : {1: 0, 2: 0, 3: 0, 4: 0, 5: 0}