Advance Functions in Python #04
Advance functions in Python
Dictionary
In programming, we use Dictionaries to Store Key Value Pairs such as user names , addresses , passwords etc.
Each Key in a Dictionary is Unique and value can be any of data type including any collection types.
x = {"id" : 100 , "name" : "saman" , "salary" : 50000.00 }
| | | |
key value x["name"] x["salary"]
x["id"]
Use of Dictionary is we can access values with key such as x["name"] = saman
Comments
Post a Comment