Seudónimo Seudónimo
  • 14-02-2022
  • Computers and Technology
contestada

In python, what is the difference between a dictionary and a set? How are they similar?

Respuesta :

hobibb
hobibb hobibb
  • 14-02-2022

Answer:

"A set is an unordered collection. A dictionary is an unordered collection of data that stores data in key-value pairs."

Explanation:

Set =>

Collection of non-repetitive elements.

Unordered

Unindexed

No way to change items.

Dictionary =>

Collection of key-value pairs.

Unordered

Indexed

Mutable

Answer Link

Otras preguntas

1. Calculate the perimeter of each of the polygons below. 1. Triangle ABC has vertices A (-2, 1), B(-3, 5), and C(3, 6).
Determine whether each sentence is an example of literal or figurative language.LiteralJill went bungee jumping off a bridge.After the heavy rains, the river wa
Name the franchise dealer that serviced thabo's car
38.70 is 45 percent of what number?
Edit ViewEscribe un párrafo de 60 palabras en el cuálhables de tu experiencia académica y laboral.Asegúrate de utilizar el pretérito perfecto simp.y compuesto.A
ANSUR is an abbreviation of​ "anthropometric survey." Use the accompanying sample of weights​ (kg) of the males from the data set ​"ANSUR Upper I 1988​," which
Retrograde cricopharyngeus dysfunction ?
Firman Allah SWT:Maksudnya: "Sebenarnya orang yang beriman itu adalah bersaudara, maka damaikanlah antaradua saudara kamu (yang bertelingkah) itu".(Surah al-Huj
Read the sentence.The tripod kept the camera steady so Alix could take a clear picture of the sunset.Based on the meaning of the Greek root tri-, what is the de
How can I unsubscribe?