#Basic_operations on #Sets #Intersection #Union #Difference #Symmetric_Difference #Part1 #Python

preview_player
Показать описание
Music Credits
Music Cuba
Musician ASHUTOSH

Link to Python Basics:
👇👇👇

Link to Computer System and Python Fundamentals:
👇👇👇

Link to Python Codes:
👇👇👇

Link to Math Functions:
👇👇👇

Link to String Functions:
👇👇👇

Link to List and Dictionary Functions:
👇👇👇

Link to Patterns:
👇👇👇

Link to Python Library Programs:
👇👇👇
Рекомендации по теме
Комментарии
Автор

#Source_code:
#A SET IN PYTHON IS AN ITERABLE ENCLOSED WITHIN CURLY BRACKETS

#PYTHON PROGRAM TO 🎭 PERFORM BASIC OPERATIONS ON TWO SETS

A=eval(input('Set A:'))
B=eval(input('Set B:'))

#Union of SETS
print('Union of A and B:')
print(A|B)

#Intersection of SETS
print('Intersection of A and B:')
print(A&B)

#Difference of SETS
print('Difference of A and B:')
print('A-B:', A-B)
print('B-A:', B-A)

#Symmetric Difference
print('Symmetric difference of A and B:')
print(A^B)

snehaiitian