Answers for "python is dict"

3

dicts python

thisdict =	{
  "brand": "Ford",
  "model": "Mustang",
  "year": 1964
}
x = thisdict["model"]
print(x)
---------------------------------------------------------------------------
Mustang
Posted by: Guest on October-30-2020
0

python if type dict

my_dict = isinstance({"A":"a", "B":"b", "C":"c", "D":"d"},dict)
print("my_dict is a dict:", my_dict)
Posted by: Guest on July-01-2021

Python Answers by Framework

Browse Popular Code Answers by Language