Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

how to add an element in dictionary

thisdict =	{
  "brand": "Ford",
  "model": "Mustang",
  "year": 1964
}
thisdict["color"] = "red"
print(thisdict)
 
PREVIOUS NEXT
Tagged: #add #element #dictionary
ADD COMMENT
Topic
Name
5+6 =