Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to get dictionary input from user in python

family = {}
family["Name"] = input("Enter name: ")
family["Age"] = int(input("Enter age: ")) 
family["Relation"] = input("Enter relation: ")
print(family)
Source by www.quora.com #
 
PREVIOUS NEXT
Tagged: #dictionary #input #user #python
ADD COMMENT
Topic
Name
4+2 =