The 'isdisjoint( )' Function takes the values from both the Sets and checks if no items are present in both Sets. If so, returns true else false.
x = {"Mohan", "Kriti", "Salim"} y = {"Sia", "Andrew", "Kriti"} z = x.isdisjoint(y) print(z)
So, in the above code we have created a 'Set' and initialised to the variable 'x'.
Then what we have done is, put the names, 'Sia', 'Andrew' and 'Kriti' in another set 'y'.
And used the 'isdisjoint( )' Function next.
And since, 'Kriti' is present in both the Sets, 'isdisjoint( )' returns False.
And we get the below output,