In this video we will learn about Python data types - Sets in Python-Overview / Methods .
@vintagetutorials92
What is sets ?
Set items are unordered, unchangeable, and do not allow duplicate values
We will see below points for sets in the video - python tutorial
1. Duplicates Not Allowed
2. Set items can be of any data type & it can contain different data types
3. Set constructor – set()
4. How to check the length of set
5. We cannot access items in a set using index or a key
6. Different useful methods of sets - modify sets in python / transform sets in python
add() - to add elements in sets
remove()/discard() - to remove/ discard elements in sets
pop()- to remove random elements from sets
clear() - to clear all the elements in the sets but preserve the variable
del - to completely delete the set, element and variable
Frequently used data types in Python?
Text : str
Numeric : int, float
Sequence : list, tuple, range
Mapping : dict
Set : set
Boolean : bool
@vintagetutorials92
#sets #pythondatastructures #pythondatasciencetutorial #pythondatatypes #pythontutorial #python #pythonprogramming #pythontutorial #python3 #pythonforbeginners #pythonprojects