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

Which has a mismatch between subject and modifier? Though not the prettiest one at the fair, I was sure my cake was the tastiest. Though it wasn't the prettie
if f(x)=3/4 and g(x)=3x which statement is true trust me I've tried
if element x has 55 protons how many electrons does it have
The stage plot that comes directly after exposition is called what
Some stretching exercise can be harmful, even if performed correctly. a. True b. False?
When ash, cinders, and bombs build up in a steep pile around a volcano’s vent, the result is a a. cinder cone volcano. b. shield volcano. c. composite volcan
What was that opposition of World War II
A nation with an oligarchy form of government has
________ is a process that creates genetic variety in cells. Cell fission Meiosis Mitosis Asexual reproduction
Until about the _______ century, music was transmitted orally, not in written form. a. thirteenth b. twelfth c. tenth d. eleventh