Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

adding new key in python

#adding new key in python

List_of_Students = {"Jim" : "Roll-32"+","+ "Priority-First",
                    "Yeasin": "Roll-33"+","+ "Priority-2nd",}

List_of_Students.update({"Pinky": "Roll-34"})

for x in List_of_Students:
    print(x)

#That will show only the the key

Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #adding #key #python
ADD COMMENT
Topic
Name
4+7 =