Development as well as web application testing services are also moving towards utilizing Python for test automation. So, utilizing the learning about its modules and packages for quick development is important. One of the important feature of Python is understanding Dictionary. It is storing data in key:value pairs that means it is mapping the unique keys to its values. Values stored in dictionaries can be changed and are unordered. In other words, we can say that these is mutable.
Curly brackets {} are used to create the dictionary, indexed using square brackets [] and key-value pairs are separated using a comma (,) . These are utilized for storing unique values and for quick lookup. For Example:
thisdict = {
"brand": "Dell",
"model": "XYZ001",
"year": 2008
}
print(thisdict)
Top Software QA Services & Analysis
Get customized solutions for all your web application testing and QA services needs by QASource.
Replies
Development as well as web application testing services are also moving towards utilizing Python for test automation. So, utilizing the learning about its modules and packages for quick development is important.
One of the important feature of Python is understanding Dictionary. It is storing data in key:value pairs that means it is mapping the unique keys to its values.
Values stored in dictionaries can be changed and are unordered. In other words, we can say that these is mutable.
Curly brackets {} are used to create the dictionary, indexed using square brackets [] and key-value pairs are separated using a comma (,) . These are utilized for storing unique values and for quick lookup. For Example:
thisdict = {
"brand": "Dell",
"model": "XYZ001",
"year": 2008
}
print(thisdict)