↻
⏵︎ Run
myList = ['a', 'b', 'c'] defaultValue = 54 myDict = {myList[i]: defaultValue for i in range(0, len(myList), 1)} print(myDict)
Output