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

Опубликовано: 23 Октябрь 2024
на канале: Code With Daneyal
1,334
26

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

Python Tutorial in English:    • #0 Python Tutorial for Beginners | Co...  

Please support the channel
1. By Subscribe it

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

PayPal
https://www.paypal.me/daneyallari

Google Pay UPI
daneyallari@okhdfcbank

PayUMoney
https://prowessapps.in/channel_support

https://www.prowessapps.in/python

Write your queries at:

[email protected]
[email protected]

Please like, comment, share, and subscribe.

#CodeWithDaneyal #python ##pythonInHindiByDaneyalLari