Tuesday 15 July 2014

Python - 1


What s dictionary ? 

  • It associates keys to values. 
  • Each key must have a value.
  •  Dictionary is mutable 

  • Each key seperated by (:)
  • The values of a dictionary can be of any type, but the keys must be of an immutable data type such as strings, numbers, or tuples

  • We can update , add, delete 




dict() -> new empty dictionary