Breaking News: Grepper is joining You.com. Read the official announcement!
Check it out

How to Create Dictionary?

Satinder Rawal answered on February 1, 2020 Popularity 8/10 Helpfulness 2/10

Contents


More Related Answers

  • how to create data dictionary in python using keys and values
  • creating dictionary using the keys
  • create dictionary from keys and values python
  • Simple dictionary in Python
  • how to use dictionaries in python
  • python create dictionary from key value
  • how to declare a dictionary in python
  • python create a dictionary of integers
  • python declare variables from dictionary
  • create dictionary in java
  • how to use dictionary in python
  • how to write a dict in pytohn
  • python make dict
  • how to make a new key in a dictionary python
  • how to store the variable in dictionary
  • creating a dictionary:
  • Python Dictionary "Creating a Dictionary"
  • how to define a dictionary in python
  • how to store the variable in dictionary
  • how to store a function in a dictionary python

  • How to Create Dictionary?

    0

    d = {} OR d = dict()

     We are creating empty dictionary. We can add entries as follows

    1) d[100]="durga"

    2) d[200]="ravi"

    3) d[300]="shiva"

    4) print(d)  {100: 'durga', 200: 'ravi', 300: 'shiva'}

     If we know data in advance then we can create dictionary as follows

     d = {100:'durga' ,200:'ravi', 300:'shiva'}

     d = {key:value, key:value} 

    Popularity 8/10 Helpfulness 2/10 Language whatever
    Source: Grepper
    Tags: whatever
    Link to this answer
    Share Copy Link
    Contributed on Apr 17 2023
    Satinder Rawal
    0 Answers  Avg Quality 2/10

    Closely Related Answers



    17
    Popularity 10/10 Helpfulness 5/10 Language python
    Source: Grepper
    Tags: dictionary d
    Link to this answer
    Share Copy Link
    Contributed on Feb 01 2020
    Joyiscode
    0 Answers  Avg Quality 2/10

    3
    Popularity 10/10 Helpfulness 4/10 Language python
    Source: Grepper
    Tags: dictionary d
    Link to this answer
    Share Copy Link
    Contributed on Aug 18 2022
    Hamza Irfan
    0 Answers  Avg Quality 2/10

    5
    Popularity 10/10 Helpfulness 4/10 Language python
    Source: Grepper
    Tags: dictionary d
    Link to this answer
    Share Copy Link
    Contributed on Apr 17 2021
    Ugly Unicorn
    0 Answers  Avg Quality 2/10

    11
    Popularity 10/10 Helpfulness 4/10 Language python
    Source: Grepper
    Tags: dictionary d
    Link to this answer
    Share Copy Link
    Contributed on May 17 2020
    Bst Barracuda
    0 Answers  Avg Quality 2/10

    2
    Popularity 10/10 Helpfulness 4/10 Language python
    Source: xahlee.info
    Tags: dictionary d
    Link to this answer
    Share Copy Link
    Contributed on Dec 10 2021
    Sore Sloth
    0 Answers  Avg Quality 2/10

    1
    Popularity 9/10 Helpfulness 4/10 Language python
    Tags: dictionary d
    Link to this answer
    Share Copy Link
    Contributed on Aug 18 2022
    Hamza Irfan
    0 Answers  Avg Quality 2/10

    3
    Popularity 10/10 Helpfulness 3/10 Language python
    Source: Grepper
    Tags: dictionary d
    Link to this answer
    Share Copy Link
    Contributed on Oct 21 2020
    Courageous Crossbill
    0 Answers  Avg Quality 2/10

    0
    Popularity 8/10 Helpfulness 3/10 Language python
    Source: Grepper
    Tags: dictionary d
    Link to this answer
    Share Copy Link
    Contributed on Jan 10 2023
    Blasian
    0 Answers  Avg Quality 2/10

    0
    Popularity 9/10 Helpfulness 3/10 Language python
    Source: softhunt.net
    Tags: dictionary d
    Link to this answer
    Share Copy Link
    Contributed on May 05 2022
    Outrageous Ostrich
    0 Answers  Avg Quality 2/10

    1
    Popularity 10/10 Helpfulness 2/10 Language python
    Tags: dictionary d
    Link to this answer
    Share Copy Link
    Contributed on Oct 08 2020
    Tman
    0 Answers  Avg Quality 2/10


    X

    Continue with Google

    By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
    X
    Grepper Account Login Required

    Oops, You will need to install Grepper and log-in to perform this action.