Run
def someThing(x): x = x**3 return x myDict = {x: someThing(x) for x in (5, 8, 9, 12)} print(type(myDict)) print(myDict)
Output