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

Popular posts from this blog

Calculator v2.0 - python

Hacker Rank C Challenges #003

Advance Functions In Python