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

Create a linear function f(x), whose graph has the given slope that meets the given condition. Slope of 7,f(7)=1. The equation of the line is y=?
where is science done
scientific notation of $125 billion
american colonists were unlike people in most colonies and nations because of what reason?
When you divide a whole number by a whole number( other then one), the quotient is a smaller number?
How to write 65 trillion
How to change feet to centimeters and feet centimeters to gallons
If tim spends 1/3 each weekday sleeping and about 7/24 each weekday in school what fraction of a weekday does Tim spend either sleeping or in school
Light in vacuum travels at a speed of 3.00 x 10^8 m ^-1 s^-1 on average earth is 93,000,000 miles from the sun how many minutes does it take sunlight to reach
Name the subset(s) of real numbers to which each number belongs. Then order the numbers from least to greatest. The square root of 105, -4, 4/3