Вопрос задан 28.08.2018 в 04:09. Предмет Русский язык. Спрашивает Шакирова Мариэлла.

Что такое словарь? Объясните

0 0
Перейти к ответам

Ответы на вопрос

Внимание! Ответы на вопросы дают живые люди. Они могут содержать ошибочную информацию, заблуждения, а также ответы могут быть сгенерированы нейросетями. Будьте внимательны. Если вы уверены, что ответ неверный, нажмите кнопку "Пожаловаться" под ответом.
Отвечает Данилина Елизавета.
Словарь - большая книга, где записанны слова и их значения. Много есть словарей самый хороший словарь Словарь Ожегова там есть транскрипции слов и их переводы)
0 0
Отвечает Тутов Никита.
Словарь-это книга,источник полезной информации. Он распределен на  статьи, которые разделены по какой либо тематике или же  по названию. Есть словарь Даля, очень полезный словарь.Можно сказать, что словарь, это сборник слов, принадлежавших определенному языку.Бывают Толковые словари, Энциклопедические, Фразеологические, Двуязычные и другие.

0 0
Отвечает нейросеть ChatGpt. Будьте внимательны, ответы нейросети могут содержать ошибочные или выдуманные данные.

What is a dictionary?

A dictionary is a data structure in programming that stores a collection of key-value pairs. Each key in the dictionary is unique and is used to access its corresponding value. Dictionaries are also known as associative arrays, hash maps, or hash tables in other programming languages.

In a dictionary, the keys are typically strings or numbers, while the values can be of any data type, such as strings, numbers, lists, or even other dictionaries. The key-value pairs are stored together, allowing for efficient retrieval of values based on their associated keys.

Dictionaries are widely used in programming because they provide a fast and efficient way to store and retrieve data. They are particularly useful when you need to quickly look up values based on specific keys, rather than iterating through a list or an array.

In Python, dictionaries are denoted by curly braces `{}` and use a colon `:` to separate the key and value pairs. Here's an example of a dictionary in Python:

```python my_dict = {"name": "John", "age": 25, "city": "New York"} ```

In this example, `"name"`, `"age"`, and `"city"` are the keys, and `"John"`, `25`, and `"New York"` are the corresponding values.

To access a value in a dictionary, you can use the key as an index. For example, `my_dict["name"]` would return `"John"`. If a key does not exist in the dictionary, it will raise a `KeyError` exception.

Dictionaries are mutable, meaning you can add, modify, or remove key-value pairs after the dictionary is created. This flexibility makes dictionaries a powerful tool for organizing and manipulating data in programming.

0 0

Топ вопросов за вчера в категории Русский язык

Последние заданные вопросы в категории Русский язык

Задать вопрос