Dictionary

 

    Features of Dictionary:

  • Dictionary is one of the built in type data strtucture
  • Order is not pre-defined, ie Unordered
  • It is the combination of Key: Value
  • Keys are unique, duplicated are not allowed
  •  

  • dictionary {}
  •  

    Usage of Dictionary:

     

     

    Dictionary Structure:

     

     

    Dictionary - For Loop structure

     

    Name Numerology - what your name states about posture?

     

  • What your name states about your posture....
  • Download and open python file... press F5 to run the program
  • Enter your name..... Hit enter
  • Result will display
  • If you are not happy with the displayed result, change the VALUE in "result" dictionary agaist the respective number, to satiate your self
  • Have good fun

     

    Dictionary Basic concepts

     

     

     

    Create Duplication

     

     

     

    Append and Remove

     

     

    String convert into Dictionary

     

     

    Pop Vs Popitem

     

    sorting key and vlaues

     

     

    Dictionary key value into list

     

     

    Dictionary retrieve key value through Item

     

     

    Dictionary key values through for loop

     

     

    Convert Dictionary into List

     

     

    Convert the Keys into Dictionary - and retrieve values

     

     

    Retrieve values based on condition

     

     

    Key exists or not