Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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
8+9 =