DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
6+6 =
Submit