Write a Python program to convert two equal length sets to dictionary


Topic: Write a Python program to convert two equal length sets to dictionary

Solution

keys = {'Ten', 'Twenty', 'Thirty'}
values = {10, 20, 30}
sampleDict = dict(zip(keys, values))
print(sampleDict)



List all Python Programs