set('programming') - set('python')
{'r', 'g', 'a', 'm', 'i'}
{'p', 'y', 't'}
{'r', 'o', 'm', 'i', 'n'}
{'p', 'r', 'o', 'g', 'a', 'm', 'i', 'n'}
Discuss About this Question.
set('abc') ^ set('cde')
{'a', 'b', 'c', 'd', 'e'}
{'a', 'b'}
{'c'}
{'a', 'b', 'd', 'e'}
set.isdisjoint(other_set)
isdisjoint()
set.pop()
set.remove_last()
set.delete_last()
set.discard_last()
pop()
set([1, 2, 3]) & set([2, 3, 4])
{1, 2, 3, 4}
{2, 3}
{}
{1, 4}
To install on iPhone/iPad: tap Share → Add to Home Screen.
Discuss About this Question.