space separated dictionary input in python

43

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

Comments

Submit
0 Comments