Search
 
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
Name
7+2 =