Join Regular Classroom : Visit ClassroomTech

coding

Python Set – symmetric_difference() Method

It is a method in python returns the symmetric difference of two sets i.e. returns a set where elements of both the sets are there but excluding their intersection. It doesn’t modifies the given set. Syntax:set1.symmetric_difference(set2)orset1^(set2) Also Read: Python Set – difference_update() Method Example 1: Output: Explanation:Here it returned all the elements of both the […]

Python Set – symmetric_difference() Method Read More »