Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #usr/bin/env python
- # -*- coding: utf-8 -*-
- a=set([0,2,5,7])
- b=set([1,3,5,7,9])
- print a.symmetric_difference(b) or a ^ b, '\n' #a ve b kümesinin birbirinden farkları
- print a, "\n"
- a.symmetric_difference_update(b) # veya a ^= b
- print a
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement