Frozen Set in Python | Python Tutorial in Hindi | #48

preview_player
Показать описание
In this video, you will learn the frozen set in python.

What is a frozen set?
Frozen sets are immutable objects, it has the characteristics of a set, but their elements cannot be changed once assigned.

HOW TO CREATE?
The frozenset() is an inbuilt function in Python that takes an iterable object as an argument and makes them immutable.

USE?
Since sets are mutable objects and unhashable, they can't be used as keys in a dictionary. But frozen sets are hashable and can be used as keys in dictionary data types.

NOTE:
Frozenset doesn't support any method that updates and removes elements.

Frozen set supports methods like
copy(), 
difference(), 
intersection(),
isdisjoint(), 
issubset(), 
issuperset(), 
symmetric_difference() and 
union() .

Python Tutorial in Hindi.
Learn Python in Hindi

Please support the channel
1. By Subscribe it

2. By paying a small amount.
This amount means a lot

PayPal

Google Pay UPI

PayUMoney

Write your queries at:

Please like, comment, share, and subscribe.

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

You are doing awesome work !! Keep it up. Subscribed

AbhaGupta
visit shbcf.ru