23. Sets and Frozen Sets [Python 3 Programming Tutorials]

preview_player
Показать описание
Learn how to use sets and frozen sets in python. Set is basically mathematical set and could be really useful in programming. Frozen sets are same as set except you can not change them (immutable).

Next Video:

Рекомендации по теме
Комментарии
Автор

Wow, fantastic video, thank you so much!! The examples at the end were so clear. AMAZING

SaltAndVi
Автор

Some additional functionaity of frozenlists for anyine reading this:
Frozensets are hashable. Sets are not.

What that means is that frozensets can be used as keys in a dictionary:
You can use frozenset({1, 2, 3}) or frozenset({"apple", "mango"}) as a key in a dictionary.
You cannot use set({1, 2, 3}) or set({"apple", "mango"}) as a key in a dictionary.

This is useful if you ever want to use a list of elements as a key in a dictionary. Convert that list to a frozenset and use it as a key.

armagaan
Автор

Wow I learnt so much from this video thankss😇😇😇

VeenapaniBandi
Автор

Is it possible to convert a set to a list.

racharlavamshi