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

Suppose that as the result of extensive pollution to the ocean, kelp forests are killed. Explain how this would affect not only kelp populations, but also many
Tim works part time at a retail store. His salary varies directly by the number of hours worked. Last week he arned $99.45 for 13 hours of work. This week he ea
The area of Alicia's garden is 81 square feet. What are the dimensions of her garden ?
What is 3/10 equivalent to
adam drew 2 same size rectangles and divided them into the same number of equal part. he shaded 1/3 od one rectangle and 1/4 of other rectangle. what is the lea
book is 24 dollars. Ben pays 25.02. what is sales tax rate.
What is multiplication properties. Example a number line that goes from 0-27. Using numbers 6,7,8 and 9.
Find two consecutive positive odd integers whose product is 35??
what is the difference in the charges on a balloon rubbed in your hair and a glass  rod rubbed with silk? why?
Find two consecutive positive odd integers whose product is 35??