[Python] Creating Dictionaries

Creating dictionary using { }

  1. How create / initialise an empty dictionary
  2. How to create a dictionary with values in it
  3. A dictionary with multiple types of values, — strings, list and even dictionaries

Dictionary using dict( ) method

Creating using zip( )

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Nikhil Narayanan

Nikhil Narayanan

4 Followers

DevOps Engineer | Python Developer | Machine Learning | Artificial intelligence Enthusiast