DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR TYPESCRIPT
how to add multiple inputs to a dictionary python
n = 3 d = dict(input("Enter key and value: ").split() for _ in range(n)) print(d)
Source by tutorial.eyehunts.com #
PREVIOUS
NEXT
Tagged:
#add
#multiple
#inputs
#dictionary
#python
ADD COMMENT
Topic
COMMENT
Name
7+2 =
Submit