space separated dictionary input in python

34

d = {}
for i, v in enumerate(input().split()):
    d[i] = v

Comments

Submit
0 Comments