Q:

python json remove value

thisdict =	{
  "brand": "Ford",
  "model": {"Mustang":1,"hggg":2},
  "year": 1964
}
thisdict["model"].pop("Mustang")
print(thisdict)
0

thisdict =	{

  "brand": "Ford",

  "model": "Mustang",

  "year": 1964

}
thisdict.pop("model")

  print(thisdict) 
0

New to Communities?

Join the community