mirror of
https://github.com/Asabeneh/30-Days-Of-Python.git
synced 2026-06-12 21:01:48 +08:00
Sets
This commit is contained in:
parent
1be1d5f980
commit
4f7111dbc5
@ -1,5 +1,5 @@
|
||||
<div align="center">
|
||||
<h1> 30 Days Of Python: Day 7 - Set</h1>
|
||||
<h1> 30 Days Of Python: Day 7 - Sets</h1>
|
||||
<a class="header-badge" target="_blank" href="https://www.linkedin.com/in/asabeneh/">
|
||||
<img src="https://img.shields.io/badge/style--5eba00.svg?label=LinkedIn&logo=linkedin&style=social">
|
||||
</a>
|
||||
@ -20,7 +20,7 @@
|
||||

|
||||
|
||||
- [📘 Day 7](#-day-7)
|
||||
- [Set](#set)
|
||||
- [Sets](#sets)
|
||||
- [Creating a Set](#creating-a-set)
|
||||
- [Getting Set's Length](#getting-sets-length)
|
||||
- [Accessing Items in a Set](#accessing-items-in-a-set)
|
||||
@ -40,7 +40,7 @@
|
||||
|
||||
# 📘 Day 7
|
||||
|
||||
## Set
|
||||
## Sets
|
||||
|
||||
Let me take you back to your elementary or high school Mathematics lesson. The Mathematics definition of a set can be applied also in python. Set is a collection of unordered and unindexed distinct elements. In python set is used to store unique items, and it is possible to find the _union_, _intersection_, _difference_, _symmetric difference_, _subset_, _super set_ and _disjoint set_ among sets.
|
||||
|
||||
@ -377,6 +377,8 @@ dragon = {'d', 'r', 'a', 'g', 'o','n'}
|
||||
python.disjoint(dragon) # False, there are common items {'o', 'n'}
|
||||
```
|
||||
|
||||
🌕 You are a rising star . You have just completed day 7 challenges and you are 7 steps a head in to your way to greatness. Now do some exercises for your brain and for your muscle.
|
||||
|
||||
## 💻 Exercises: Day 7
|
||||
|
||||
```py
|
||||
|
||||
Loading…
Reference in New Issue
Block a user