Table of Contents
Python Tutorial
Table of Contents
Python Tutorial
Python Set in Hindi
What is Python Set
Set, elements का unordered ओर unindexed collections होता है इसके elements unique होते हैं मतलब कोई भी elements repeat नहीं हो सकता और set unordered होता है इसलिए set के elements को हम directly indexing से access नहीं कर सकते, set को { } के define किया जाते हैं या फिर हम set banane के लिए set function का भी use कर सकते हैं।
How to Iterate Set Items
loop का use करके हम set के elements को iterate कर सकते है, ध्यान दीजिए हम indexing से set के items को access नहीं कर सकते है।
Set Methods
python मे set के लिए build-in methods होते है, जिनका use करके set के साथ अलग अलग operation perform किया जाता है।
Syntex:
method को किसी भी variable के साथ use करने के लिए dot ( . ) का use करते है।
Example:
add() : इस method का use हम set मे नए item को add करने के लिए करते है।
How to Remove set items
How to Join Sets
intersection(): दो sets का intersection return करता है।
difference(): दो sets का difference return करता है।
symmetric_difference(): दो sets का symmetric difference return करता है।
issubset(): Check करता है की एक set दूसरे set का subset है या नहीं।
issuperset(): Check करता है की एक set दूसरे set का superset है या नहीं।
उम्मीद करते है कि आपको python set अच्छे समझ मे आ गया होगा । अपने learning को continue रखने के लिए next button पर click करे,
- All Posts
- Artificial Intelligence
- Computer Fundamentals
- Computer Networks
- Data Analytics
- Data Science
- DBMS
- Deep Learning
- Digital Electronics
- DSA with Python
- Excel
- Exercise
- Git & Github
- Machine Learning
- Matplotlib
- Natural Language Processing
- NumPy
- Operating System
- Pandas-s
- Power BI
- Python Tutorial
- Scikit-learn
- Seaborn
- SQL & MySQL

Table of Contents All Chapters 1. Personal Area Network 2. Local Area Network 3. Campus Area Network 4. Metropolitan Area...

Table of Contents All Chapters 1. Data Communication 2. Types of Data Communication 2.1. Simplex 2.2....

Table of Contents All Chapters 1. Special Logic Gate 2. XOR Gate 2.1. XOR Gate Truth Table 3....

Table of Contents All Chapters 1. Universal Logic Gates 2. NOR Gate 2.1. NOR Gate Truth Table 3....

Table of Contents All Chapters 1. Logic Gate 2. AND Gate 2.1. AND Gate Truth Table 3. OR...

Table of Contents All Chapters 1. Simplification 2. Simplification using Boolean Algebra Theorems 3. Simplification using K-map Digital Electronics...

Table of Contents All Chapters 1. Identity Laws 2. Null Laws 3. Domination Laws 4. Idempotent Laws 5. Complement Laws...