- Популярные видео
- Авто
- Видео-блоги
- ДТП, аварии
- Для маленьких
- Еда, напитки
- Животные
- Закон и право
- Знаменитости
- Игры
- Искусство
- Комедии
- Красота, мода
- Кулинария, рецепты
- Люди
- Мото
- Музыка
- Мультфильмы
- Наука, технологии
- Новости
- Образование
- Политика
- Праздники
- Приколы
- Природа
- Происшествия
- Путешествия
- Развлечения
- Ржач
- Семья
- Сериалы
- Спорт
- Стиль жизни
- ТВ передачи
- Танцы
- Технологии
- Товары
- Ужасы
- Фильмы
- Шоу-бизнес
- Юмор
Python MCQ 96 - Test Your Skills #python #pythonprogramming #pythoninterview#shorts#trending
#python
#pythonprogramming
Python MCQ Questions and answers,
Python MCQ , Python Programming,
Python, Python Type - set,
Python Datatype - set,
set operations methods,
set creation, set operations, disjoint, isdisjoint,
subset, issubset, proper subset,
superset, issuperset, proper superset,
Set operations:
s.isdisjoint(t)
⇒True→if s has no common itms with t.
⇔s&t→empty set
s.issuperset(t)⇔s greater= t
⇒True→All itms of t is in s.
s greater t⇔s greater= t and s != t
⇒True→s is a proper superset of t.
s.issubset(t)⇔s lesser= t
⇒True→All itms of s is in t.
s lesser t⇔s lesser= t and s != t
⇒True→s is a proper subset of t .
set operations,
set operations methods, set methods,
union(), intersection(),
difference(), symmetric_difference(),
union(t1,...)⇔s | t1 | ...
⇒Returns a new set with itms from s and all others (t1,...)
intersection(t1,...)⇔s & t1 & ...
Returns a new set with itms common to s and all t1,...
difference(t1,...)⇔s - t1 - ...
Returns a new set with itms in s that are not in t1,...
symmetric_difference(t1)⇔s ^ t1
Returns a new set with itms in either s or t1 but not both.
Set Methods: add, remove, discard, pop, clear
Set
→mutable, unordered collection of ',' comma separated unique items within {}
→No support of index, slice or sequence operations.
→ Not Hashable (No nested set) but set items must be Hashable
set creation, set() constructor, set comprehension,
set creation using iterable.
set - unordered, finite sets of unique, immutable objects.
set - unordered collection of distinct hashable objects.
an unordered collection with no duplicate elements.
Uses: membership testing and eliminating duplicate entries. Set objects support mathematical operations like union, intersection, difference, and symmetric difference.
NIELIT M3-R5 Course 'O' Level Certification,
PG TRB,
TN TRB Assistant Professor Computer Science,
TN TRB AP Computer Science,
TRB AP,
GATE - Data Analytics, GATE - DA,
UGC NET, TANCET MCA, TN SET,
#pythontutorial #pythonforbeginners #pythonlists
#pythonlist
#pythondeveloper #pythoncoding #learnpython
#pythonquiz #python3 #pythonskills #codingpython
#pythonbasics #pythonbeginner #pythonprogramming
#datascience #dataanalytics
#codingquiz #quizchallenge #codingcommunity
#freshers #techtalk #top10
#interviewpreparation #interviewhacks #interviewquestions #interviewskills
Ace your Python exams with this MCQ marathon!
Covers various Python concepts, including input/output, data structures, and more.
#PythonMCQs #PythonInterview #CodingQuiz #PythonProgramming #TechSkills
#ssitlecturestamil @ssitlecturestamilதமிழ்
a→{'p','s','a','l','e'} b→{'a','l','p','e'}
c→{'a','l','p','e'} d→{'u','n','f'}
True
a disjoint d
a superset c⇒a greater=c
agreater b→proper superset
clessera→proper subset
False
disjoint→c,b,subset→a,c→d,b
superset→d,c
MCQs →88,90,95
isdisjoint(other)
Return True if the set has no elements in common with other. Sets are disjoint if and only if their intersection is the empty set.
issubset(other)
set lesser= other
Test whether every element in the set is in other.
set lesser other
Test whether the set is a proper subset of other, that is, set lesser= other and set != other.
issuperset(other)
set greater= other
Test whether every element in other is in the set.
set greater other
Test whether the set is a proper superset of other, that is, set greater= other and set != other.
Set Operations
⇒Returns a new set with itms
p=s.union(t1,...)⇔p=s | t1 | ...
⇒From s and all others (t1,...)
p=s.intersection(t1,...)⇔p=s & t1 & ...
⇒Common to s and all t1,...
p=s.difference(t1,...)⇔p=s - t1 - ...
⇒In s that are not in t1,...
p=s.symmetric_difference(t1)⇔p=s ^ t1
⇒In either s or t1 but not both.
p,s→set
Using,
operators:|,&,-,^⇒t1,... must be set
methods:⇒t1,... can be iterable
Set Methods:
itm →immutable type
s.add(itm)→Adds itm but not in any order.
s.remove(itm)→Removes itm if exists else KeyError.
s.discard(itm)→Remove itm if exists otherwise none.
itm=s.pop()→Removes and returns an arbitrary itm.
If empty⇒KeyError
s.clear()→Remove all items⇒set()⇒empty set
Set Creation:
Empty: s=set()
Literals: s={v1,v2}
Iterable: s=set{itr}
Comprehension: s={v for v in itr}
⇒No guarantee in order of items during print or iteration.
MCQ 69-71⇒List Comprehension
frozenset-immutable version of set.
Видео Python MCQ 96 - Test Your Skills #python #pythonprogramming #pythoninterview#shorts#trending канала SS IT Lectures Tamil தமிழ்
#pythonprogramming
Python MCQ Questions and answers,
Python MCQ , Python Programming,
Python, Python Type - set,
Python Datatype - set,
set operations methods,
set creation, set operations, disjoint, isdisjoint,
subset, issubset, proper subset,
superset, issuperset, proper superset,
Set operations:
s.isdisjoint(t)
⇒True→if s has no common itms with t.
⇔s&t→empty set
s.issuperset(t)⇔s greater= t
⇒True→All itms of t is in s.
s greater t⇔s greater= t and s != t
⇒True→s is a proper superset of t.
s.issubset(t)⇔s lesser= t
⇒True→All itms of s is in t.
s lesser t⇔s lesser= t and s != t
⇒True→s is a proper subset of t .
set operations,
set operations methods, set methods,
union(), intersection(),
difference(), symmetric_difference(),
union(t1,...)⇔s | t1 | ...
⇒Returns a new set with itms from s and all others (t1,...)
intersection(t1,...)⇔s & t1 & ...
Returns a new set with itms common to s and all t1,...
difference(t1,...)⇔s - t1 - ...
Returns a new set with itms in s that are not in t1,...
symmetric_difference(t1)⇔s ^ t1
Returns a new set with itms in either s or t1 but not both.
Set Methods: add, remove, discard, pop, clear
Set
→mutable, unordered collection of ',' comma separated unique items within {}
→No support of index, slice or sequence operations.
→ Not Hashable (No nested set) but set items must be Hashable
set creation, set() constructor, set comprehension,
set creation using iterable.
set - unordered, finite sets of unique, immutable objects.
set - unordered collection of distinct hashable objects.
an unordered collection with no duplicate elements.
Uses: membership testing and eliminating duplicate entries. Set objects support mathematical operations like union, intersection, difference, and symmetric difference.
NIELIT M3-R5 Course 'O' Level Certification,
PG TRB,
TN TRB Assistant Professor Computer Science,
TN TRB AP Computer Science,
TRB AP,
GATE - Data Analytics, GATE - DA,
UGC NET, TANCET MCA, TN SET,
#pythontutorial #pythonforbeginners #pythonlists
#pythonlist
#pythondeveloper #pythoncoding #learnpython
#pythonquiz #python3 #pythonskills #codingpython
#pythonbasics #pythonbeginner #pythonprogramming
#datascience #dataanalytics
#codingquiz #quizchallenge #codingcommunity
#freshers #techtalk #top10
#interviewpreparation #interviewhacks #interviewquestions #interviewskills
Ace your Python exams with this MCQ marathon!
Covers various Python concepts, including input/output, data structures, and more.
#PythonMCQs #PythonInterview #CodingQuiz #PythonProgramming #TechSkills
#ssitlecturestamil @ssitlecturestamilதமிழ்
a→{'p','s','a','l','e'} b→{'a','l','p','e'}
c→{'a','l','p','e'} d→{'u','n','f'}
True
a disjoint d
a superset c⇒a greater=c
agreater b→proper superset
clessera→proper subset
False
disjoint→c,b,subset→a,c→d,b
superset→d,c
MCQs →88,90,95
isdisjoint(other)
Return True if the set has no elements in common with other. Sets are disjoint if and only if their intersection is the empty set.
issubset(other)
set lesser= other
Test whether every element in the set is in other.
set lesser other
Test whether the set is a proper subset of other, that is, set lesser= other and set != other.
issuperset(other)
set greater= other
Test whether every element in other is in the set.
set greater other
Test whether the set is a proper superset of other, that is, set greater= other and set != other.
Set Operations
⇒Returns a new set with itms
p=s.union(t1,...)⇔p=s | t1 | ...
⇒From s and all others (t1,...)
p=s.intersection(t1,...)⇔p=s & t1 & ...
⇒Common to s and all t1,...
p=s.difference(t1,...)⇔p=s - t1 - ...
⇒In s that are not in t1,...
p=s.symmetric_difference(t1)⇔p=s ^ t1
⇒In either s or t1 but not both.
p,s→set
Using,
operators:|,&,-,^⇒t1,... must be set
methods:⇒t1,... can be iterable
Set Methods:
itm →immutable type
s.add(itm)→Adds itm but not in any order.
s.remove(itm)→Removes itm if exists else KeyError.
s.discard(itm)→Remove itm if exists otherwise none.
itm=s.pop()→Removes and returns an arbitrary itm.
If empty⇒KeyError
s.clear()→Remove all items⇒set()⇒empty set
Set Creation:
Empty: s=set()
Literals: s={v1,v2}
Iterable: s=set{itr}
Comprehension: s={v for v in itr}
⇒No guarantee in order of items during print or iteration.
MCQ 69-71⇒List Comprehension
frozenset-immutable version of set.
Видео Python MCQ 96 - Test Your Skills #python #pythonprogramming #pythoninterview#shorts#trending канала SS IT Lectures Tamil தமிழ்
Python MCQ Questions and Answers python programming set set creation set operations disjoint isdisjoint subset issubset proper subset superset issuperset proper superset Python O level MCQ NIELIT Certification Interview Questions Developer Python3 learnpython pythonskills pythonbasics beginners datascience dataanalytics coding quiz challenge freshers PythonMCQs SS IT Lectures Tamil ssitlecturestamil PG TRB UGC NET TANCET MCA TN SET 파이썬 TRB Assistant Professor Methods
Комментарии отсутствуют
Информация о видео
22 ноября 2025 г. 23:37:00
00:00:15
Другие видео канала




















