DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
How to split a string into a dictionary in Python
dictionary = { index: sample for index, sample in enumerate(string.split(separator)) }
PREVIOUS
NEXT
Tagged:
#How
#split
#string
#dictionary
#Python
ADD COMMENT
Topic
COMMENT
Name
1+1 =
Submit