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])
- a.update(["b","c","d"]) # a kümesine öğe ekler
- print a, "\n"
- a.update(b) # veya a |= b
- print a, "\n"
- a.pop() # kümeden rastgele bir öğe siler
- print a
Advertisement
Add Comment
Please, Sign In to add comment