Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to take space separated input in pyhon dicationary

dic = {}
for index, value in enumerate(input().split()):
    dic[int(value)] = int(index)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #space #separated #input #pyhon #dicationary
ADD COMMENT
Topic
Name
4+2 =