You can access values in a dictionary by using the key as an index. In Python, dictionaries use a key-value mapping, where each key maps to a value. To access the value associated with a key in a dictionary, you simply use the key as an index to the dictionary.
Here is an example:
person = {"name": "John", "age": 30, "city": "New York"}
print(person["name"]) # Output: John
print(person["age"]) # Output: 30
In this example, we create a dictionary person with three key-value pairs. To access the value associated with the key "name", we use the key as an index to the dictionary: person["name"]. This returns the value "John". Similarly, to access the value associated with the key "age", we use the key as an index to the dictionary: person["age"]. This returns the value 30.