Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

#clearing all keys new key in python

#clearing all keys new key in python

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

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

for key,value in List_of_Students.items():
    print(key,value)
 
PREVIOUS NEXT
Tagged: #keys #key #python
ADD COMMENT
Topic
Name
2+2 =