Advertisement
TristanSld

isdisjoint method in sets

Jan 11th, 2014
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.15 KB | None | 0 0
  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?
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement