TristanSld

isdisjoint method in sets

Jan 11th, 2014
89
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. a=set([1,5,10,15])
  4. b=set([2,4,6])
  5. print a.isdisjoint(b) or b.isdisjoint(a) # a ve b ayrık kümeler mi?
RAW Paste Data