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

Accessing Values#

Sumit Rawal answered on May 18, 2023 Popularity 1/10 Helpfulness 1/10

Contents


More Related Answers

  • access object property C#
  • Access value
  • what is value in c# properties
  • Accessing Values

  • Accessing Values#

    0

    For many, this is where a dictionary has an edge over a list or a tuple. Since there are no linear indices, we do not need to keep track of where values are stored.

    Instead, we can access a value by enclosing its key in square brackets, []. This is more meaningful than the integer indices we use for tuples and lists.

    Alternatively, we can use the get() method as follows:

    Popularity 1/10 Helpfulness 1/10 Language python
    Source: Grepper
    Tags: python
    Link to this answer
    Share Copy Link
    Contributed on May 18 2023
    Sumit Rawal
    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.