thisdict = { "brand": "Ford", "model": [1,4,9,16], "year": 1964 } print(thisdict.get("model"[1]))
When combining data structures, you must use each separately.
So, first get the list from the dict: thisdict["model"] or thisdict.get("model").
thisdict["model"]
thisdict.get("model")
Then, use the list: thisdict.get("model")[1]
thisdict.get("model")[1]
2.1m questions
2.1m answers
60 comments
57.0k users